An earthquake of magnitude 7.6 struck near Tonga in the South Pacific Ocean on Tuesday, prompting countries in the region to assess a tsunami threat.