TOKYO - An earthquake with a magnitude of 5.1 hit Miyazaki Prefecture and other areas in southwestern Japan on Monday but no tsunami warning was issued, Japan's weather agency said.