An earthquake of magnitude 7.2 struck off Papua New Guinea on Thursday, the U.S. Geological Survey said.