A strong earthquake with a magnitude of 6.6 hit southwestern Japan on Monday, triggering public warnings to stay away from coastal areas because of a tsunami advisory, which was later called off.