A magnitude 6.7 earthquake rattled Papua New Guinea on Friday, the United States Geological Survey said.