Iranian President Mahmoud Ahmadinejad fired his foreign minister while he was out of the country and named an ally, the nuclear agency chief, to take his place, closing ranks against criticism at home and abroad.

The appointment of nuclear scientist Ali Akbar Salehi as interim foreign minister Monday puts defiance of pressure to curb Iran's nuclear program at the center of the country's foreign policy.

The...