A magnitude 7 earthquake struck near the Ogasawara Islands, the Japan Meteorological Administration reports.