An earthquake with a preliminary magnitude of 5.8 hit the southwestern Japan prefectures of Kumamoto and Oita on Tuesday, with the country's weather agency warning the public to…