A 6.1 magnitude earthquake has struck the Japanese city of Osaka, shaking building , toppling walls, and cracking roads and water pipes.