BANDA ACEH, Indonesia — An tsunami watch was issued for countries across the Indian Ocean on Wednesday after a large earthquake hit waters off Indonesia, sending residents pouring from their homes in panic.

The U.S. Geological Survey said the 8.7-magnitude quake was centered 20 miles (33 kilometers) beneath the ocean floor around 269 miles (434 kilometers) from Aceh’s provincial capital

The Pacific Tsunami Warning Center in Hawaii said a tsunami watch was in effect for Indonesia, India, Sri Lanka, Australia, Myanmar, Thailand, the Maldives and other Indian Ocean islands, Malaysia, Pakistan, Somalia, Oman, Iran, Bangladesh, Kenya, South Africa and Singapore.