A powerful earthquake with a preliminary magnitude of 6.4 struck southern Japan on Thursday, causing some damage.