BEERSHEBA, Israel (AP) 鈥 U.S. President Donald Trump said a ceasefire between Iran and Israel was in effect Tuesday after the deal initially faltered and the American leader expressed deep frustration with both sides.

Israel had earlier accused Iran of launching missiles into its airspace after the truce was supposed to take effect and the Israeli finance minister vowed 鈥淭ehran will tremble.鈥

Iran鈥檚 military , state media reported 鈥 but explosions boomed and sirens sounded across northern Israel midmorning, and an Israeli military official said two Iranian missiles were intercepted.

Trump told reporters at the White House before departing for a NATO summit that in his view, both sides had violated the nascent agreement. He had particularly strong words for Israel, a close ally, while suggesting Iran may have fired on the country by mistake.

But later he said the deal was saved.

鈥淚SRAEL is not going to attack Iran. All planes will turn around and head home, while doing a friendly 鈥淧lane Wave鈥 to Iran. Nobody will be hurt, the Ceasefire is in effect!鈥 Trump said in his Truth Social post.

Indeed, Israeli Prime Minister Benjamin Netanyahu鈥檚 office said he held off on tougher strike against Iran after speaking to Trump.

The conflict, now in its 12th day, targeting Iranian nuclear and military sites, saying it could not allow Tehran to develop atomic weapons 鈥 and that it feared the Islamic Republic was close. Iran has long maintained that is peaceful.

Many worried the war might widen after the U.S. by dropping bunker-buster bombs over the weekend and Israel expanded the kinds of targets it was hitting.

But after Tehran on a U.S. military base in Qatar on Monday, Trump announced the ceasefire.

Israel accuses Iran of violating the truce. Iran denies that

The deal got off to a rocky start.

An Israeli military official who spoke on the condition of anonymity in line with military regulations said Iran launched two missiles at Israel hours into the tenuous ceasefire. Both were intercepted, the official said.

Iranian state television reported that the military denied firing missiles after the start of the ceasefire 鈥 while accusing Israel of conducting strikes.

As Trump spoke to reporters at the White House before departing for , he expressed disappointment with both sides.

Iran 鈥渧iolated it but Israel violated it too,鈥 Trump said. 鈥滻鈥檓 not happy with Israel.鈥

Trump鈥檚 frustration was palpable, using an expletive to hammer home his point.

鈥淲e basically have two countries that have been fighting so long and so hard that they don鈥檛 know what the f鈥- they鈥檙e doing,鈥 he said.

Later, however, he announced that Israel had backed off its threat to attack Tehran and would turn its jets around.

Netanyahu鈥檚 office said Israel struck an Iranian radar in response to the Iranian missile attack early Tuesday 鈥 but held off on something bigger.

鈥淔ollowing President Trump鈥檚 conversation with Prime Minister Netanyahu, Israel refrained from additional attacks,鈥 Netanyahu鈥檚 office said.

Breakthrough announced after hostilities spread

Netanyahu said Israel had agreed to a bilateral ceasefire with Iran, in coordination with Trump, after the country achieved all of its war goals, including removing the threat of Iran鈥檚 nuclear and ballistic missile programs.

Iranian Foreign Minister Abbas Araghchi said that his country would not fire at Israel if it was not fired upon, but that a "final decision on the cessation of our military operations will be made later.鈥

It鈥檚 unclear what role Ayatollah Ali Khamenei, Iran鈥檚 leader, played in the talks. He said earlier on social media that he would not surrender.

Trump said Tuesday that he wasn鈥檛 seeking regime change in Iran, two days after first floating the idea.

鈥淩egime change takes chaos,鈥 Trump told reporters on Air Force One.

Over the weekend, he mused on his social media account that 鈥渋f the current Iranian Regime is unable to MAKE IRAN GREAT AGAIN, why wouldn鈥檛 there be a Regime change???鈥

The ceasefire came after hostilities spread further across the region.

Israel鈥檚 military said Iran launched 20 missiles toward Israel before the ceasefire began on Tuesday morning. Police said they damaged at least three densely packed residential buildings in the city of Beersheba. First responders said they retrieved four bodies from one building and were searching for more. Earlier, the Fire and Rescue service said five bodies were found before revising the number downward. At least 20 people were injured.

Outside, the shells of burned out cars littered the streets. Broken glass and rubble covered the area. Police said some people were injured while inside their apartments鈥 reinforced safe rooms, which are meant to withstand rockets but not direct hits from ballistic missiles.

Iran launched a limited missile attack Monday on a U.S. military base , retaliating for earlier . The U.S. was warned by Iran in advance, and there were no casualties.

Drones attacked military bases in Iraq overnight, including some housing U.S. troops, the Iraqi army and a US military official said Tuesday.

A senior U.S. military official, who spoke on condition of anonymity because he was not authorized to comment publicly, said U.S. forces had shot down drones attacking Ain al-Assad in the desert in western Iraq and at a base next to the Baghdad airport, while another one crashed.

No casualties were reported and no group claimed responsibility for the attacks in Iraq. Some Iran-backed Iraqi militias had previously threatened to target U.S. bases if the U.S. attacked Iran.

Conflict has killed hundreds

In Israel, at least 28 people have been killed and more than 1,000 wounded in the war. Israeli strikes on Iran have killed at least 974 people and wounded 3,458 others, according to the Washington-based group Human Rights Activists.

The group, which has provided detailed casualty figures from Iranian unrest, said of those killed, it identified 387 civilians and 268 security force personnel.

The U.S. has evacuated some 250 American citizens and their immediate family members from Israel by government, military and charter flights that began over the weekend, a State Department official said.

There are roughly 700,000 American citizens, most of them dual U.S.-Israeli citizens, believed to be in Israel.

___

Gambrell reported from Dubai, United Arab Emirates, and Lidman reported from Tel Aviv, Israel. Associated Press writers David Rising in Dubai, United Arab Emirates, Josef Federman in Jerusalem, Amir Vahdat in Iran, Darlene Superville in Washington and Seung Min Kim in Noordwijkerhout, Netherlands, contributed to this report.

The 好色tv Press. All rights reserved.