The tremor had an epicentre in the Pacific Ocean and was 10km deep, according to the Japan Meteorological Agency.