A medium-strength earthquake hit eastern Japan on Saturday, NHK national television said, causing buildings to shake in Tokyo hours before the arrival of U.S. President Donald Trump.