U.S. President Donald Trump said on Tuesday a cease-fire between Israel and Iran was now in place and asked both sides not to violate it, raising hopes of an end to the 12-day war even as deadly attacks were reported in both countries.

Israeli Prime Minister Benjamin Netanyahu said Israel had agreed to Trump's cease-fire proposal, declaring that Israel had achieved its goal of removing Iran's nuclear and ballistic missile threat, but warning that it would respond forcefully to any violations, his office said.

Writing on Truth Social earlier, Trump declared: "THE CEASEFIRE IS NOW IN EFFECT. PLEASE DO NOT VIOLATE IT!"

His announcement came after Iran had launched a fresh wave of missiles, killing four people, according to Israel's ambulance service and as Iranian authorities reported nine people killed in an attack in northern Iran on Tuesday morning.

When Trump announced Monday what he called a complete cease-fire to end the war, he appeared to suggest that Israel and Iran would have time to complete missions that were underway, at which point the cease-fire would begin in a staged process.