A shallow earthquake of magnitude 6 struck northeast of Australia’s Norfolk Island on Thursday, the United States Geological Survey said.