North Korea says it successfully tested a nuke