An earthquake with a preliminary magnitude of 6.6 hit Japan's northern island of Hokkaido on Saturday, the Meteorological Agency said.