A powerful magnitude 7.4 earthquake hit deep under the South Pacific near a chain of islands north of New Zealand.