North Korea’s detonation of what it claims is a hydrogen bomb drew swift condemnation from world leaders.