The quake, which hit near the Iwate prefecture, was strong enough to shake large buildings as far away as Tokyo.