President Barack Obama has called North Korea’s third successful nuclear test a “threat to US national security,” and hinted at action by the international community.