A magnitude 7.1 earthquake has shaken southern Japan's Miyazaki Prefecture, triggering a tsunami of up to a meter high near the epicenter.