Japan’s meteorological agency forecast a tsunami of up to 3 meters (9.8 feet). TV showed some buildings shaking at their foundations.