The government of Tonga issued a tsunami warning and urged residents to move inland to higher ground on Friday after an earthquake of magnitude 7.3 struck in the sea around 207 km from the capital.

The earthquake was at a depth of 24.8 km and was centered east-southeast of Neiafu, according to the United States Geological Survey (USGS).

A tsunami advisory was also issued for American Samoa, according to the Pacific Tsunami Warning Center (PTWC). Hazardous tsunami waves from the earthquake are possible within 300 km of the epicenter along the coasts of Niue and tonga, it said.

Tonga's meteorological service warned residents to move inland.

"An urgent tsunami advisory is now in force for all of Tonga due to a strong earthquake being felt in the Kingdom tonight. Please move inland immediately until further advised," it said on its Facebook page.

In January, the Hunga tonga-Hunga Ha'apai volcano eruption triggered a tsunami that destroyed villages and resorts and knocked out communications for the South Pacific nation of about 105,000 people. At least three people were killed.