A magnitude-6.0 earthquake hit off Niigata Perfecture in Japan on Tuesday, according to the Japan Meteorological Agency.