Iran’s foreign minister says it was minutes away from war with U.S. last month