A shallow earthquake of magnitude 6 struck 89 km (55 miles) west of the South Pacific nation of the Solomon Islands on Wednesday, the United States Geological Survey reported.