A 6.1 magnitude earthquake hit the area of Japan's city of Osaka, causing minor damage but killing at least three people in the disaster.