An earthquake with a preliminary magnitude of 5.3 on Friday struck the Japanese prefecture of Kanagawa, south of Tokyo, the local weather agency said.