An earthquake of magnitude 6.7 struck off the coast of the Solomon islands in the Pacific Ocean, the U.S. Geological Survey said on Friday.