A strong earthquake with a preliminary magnitude 5.7 has struck central Japan.