Buildings shake as magnitude 6.9 earthquake hits Japan