A strong earthquake rattled the offshore waters of the Pacific Ocean near the Vanuatu Islands, triggering a localized tsunami threat.