International diplomats have scrambled to head off a full-fledged regional war. Iran and its regional proxies vowed to retaliate.