An earthquake with a magnitude of 5.1 struck 33 miles offshore and south-southeast of the city of Sendai in Japan at 8:48 a.m. on Friday, the US Geological Survey said.