North Korea today boasted that it successfully tested a nuclear weapon, sparking a barrage of global condemnation and threats of harsh sanctions over an underground blast that appeared to thrust the volatile communist state into the elite club of nuclear-armed nations.