A magnitude 6.5 earthquake has hit Papua New Guinea but there is no potential for a tsunami, authorities say.