An earthquake with a preliminary magnitude of 5.4 struck central Japan on Sunday, leaving at least five people injured in Ishikawa Prefecture on the Sea of Japan coast.