Cows are stranded on an island of grass near Kaikoura, New Zealand, in a paddock that had been ripped apart following the Nov. 14 earthquake.

Nov. 14, 2016 Cows are stranded on an island of grass near Kaikoura, New Zealand, in a paddock that had been ripped apart following the Nov. 14 earthquake. Newshub via AP

The 7.5-magnitude quake killed at least two people, caused damage to buildings and prompted tsunami warnings.

A 7.5 magnitude earthquake hits New Zealand killing at least two people, causing damage to buildings and power, and prompting tsunami warnings.

A 7.5 magnitude earthquake hits New Zealand killing at least two people, causing damage to buildings and power, and prompting tsunami warnings.

A powerful earthquake struck New Zealand’s South Island early Monday, killing at least two people, causing damage to buildings and infrastructure, and prompting emergency services to warn people along the coast to move to higher ground to avoid tsunami waves.

The magnitude-7.8 earthquake struck just after midnight in a mostly rural area that is dotted with small towns. Near the epicenter, it opened up fissures in roads and triggered landslides.

It caused damage in Wellington, the capital, more than 120 miles to the north and was strongly felt in the city of Christchurch to the south. Residents said the shaking went on for about three minutes and was followed by strong aftershocks.

Prime Minister John Key said officials had no reason to believe the death toll would rise.

“On the very best information we have at the moment, we think it’s only likely to be two. But of course there are isolated parts of the country which we don’t have perfect eyes on, so we can’t be 100 percent sure,” he said.

Two people were reported dead after a 7.8 magnitude earthquake struck the south island of New Zealand and triggered a tsunami alert for the entire coast of the country. A Wellington resident captured this video of the earthquake on his cellphone. (Monica Akhtar/The Washington Post)

Key said that waves of about 6.6 feet had hit the coast but that the tsunami threat had since been downgraded to coastal warnings.

The quake temporarily knocked out New Zealand’s emergency call number, 111, police reported. In Wellington, it collapsed a ferry loading ramp, broke windows and caused items to fall from shelves. It also forced hundreds of tourists onto the streets as hotels were evacuated.

Authorities in Wellington were urging people who work in the center of the city to stay home Monday. City officials said that some large buildings were showing signs of structural stress and that the quake would probably have caused a mess in some buildings. The city’s suburban rail network was shut while crews checked tracks, bridges and tunnels.

The quake brought back memories of the magnitude-6.3 earthquake that struck Christchurch in 2011, destroying much of the downtown area and killing 185 people. That quake was one of New Zealand’s worst disasters, causing an estimated $25 billion in damage.

Although Monday’s quake was stronger, its epicenter was much farther from any major urban areas. Location, depth and other factors beyond magnitude all contribute to the destructive power of an earthquake.

New Zealand’s Ministry of Civil Defense and Emergency Management reported that a tsunami struck about 1:50 a.m. and warned residents living in low-lying areas anywhere along the country’s east coast to move to higher ground.

The Hawaii-based Pacific Tsunami Warning Center said it did not expect the quake to generate a destructive Pacific-wide tsunami.

Within New Zealand, there was confusion about the tsunami threat throughout the morning.

The ministry initially said there was no threat but later wrote on Twitter that the “situation has changed — tsunami is possible” before reporting that a tsunami had hit.

The quake was far less violent than the one that struck Christchurch in 2011, said Hannah Gin, a 24-year-old lifelong resident of the city, adding that there was no jarring up and down or side to side, just a long, rolling sensation. But it went on for much longer than the typical quakes that strike the area, she said. She was less concerned about running for cover than she was about vomiting from the motion sickness, she said with a chuckle.

She said that her house, which was damaged in the 2011 quake, did not appear to have sustained any new damage from Monday’s temblor.

In Wellington, 132 miles north of the quake’s epicenter, power was knocked out in some places, and some windows were smashed and some chimneys collapsed.

The quake was centered 57 miles northeast of Christchurch, according to the U.S. Geological Survey.

The USGS initially estimated that the earthquake had a magnitude of 7.4 before revising it to 7.8. It said the quake struck at a depth of 14 miles, after initially putting the depth at six miles. Earthquakes tend to be more strongly felt on the surface when they are shallow.

New Zealand, with a population of 4.7 million, sits on the “Ring of Fire,” an arc of seismic faults around the Pacific where earthquakes are common.