A magnitude-5.2 earthquake struck off the east coast of Osumi Peninsula on Monday, said the Japan Meteorological Agency (JMA).