Obama blends threat of attack, hope of diplomacy