The Clinton administration aimed to head off Pyongyang’s atomic ambitions and by some accounts an attack was imminent, at the risk of an enormous casualty count, until former President Jimmy Carter stepped in and offered another remedy by diplomatic means.