Iran's armed forces chief of staff Abdolrahim Mousavi has said that Tehran was not convinced Israel would abide by a ceasefire that ended their 12-day war earlier this month.
"We did not start the war, but we have responded to the aggressor with all our power, and as we have serious doubts over the enemy's compliance with its commitments including the ceasefire, we are ready to respond with force" if attacked again, Mousavi was quoted as saying by state TV, six days into the ceasefire which US President Donald Trump announced on Tuesday.
He was speaking after Iran's judiciary said that an Israeli strike on Tehran's Evin prison during this month's 12-day war killed at least 71 people, days after the ceasefire as announced.
The strike on Monday destroyed part of the administrative building at Evin, a large, heavily fortified complex in the north of Tehran, which rights groups say holds political prisoners and foreign nationals.
"According to official figures, 71 people were killed in the attack on Evin prison," said judiciary spokesman Asghar Jahangir of the attack, part of the bombardment campaign Israel launched on 13 June.
According to Mr Jahangir, the victims at Evin included administrative staff, guards, prisoners and visiting relatives as well as people living nearby.
Images shared by the judiciary showed destroyed walls, collapsed ceilings, scattered debris, and broken surfaces across waiting areas at the facility.
The judiciary said that Evin's medical centre and visiting rooms had been targeted.
On Tuesday, a day after the strike, the judiciary said that the Iranian prison authority had transferred inmates out of Evin prison, without specifying their number or identifying them.
The inmates at Evin have included Nobel Peace Prize laureate Narges Mohammadi as well as several French nationals and other foreigners.
Meanwhile, the chief executive of the UN’s nulear watchdog has said it is likely that Iran will be able to produce enriched uranium "in a matter of months".
His assessment conflicts with that of US President Donald Trump who maintains that Iran's nuclear programme was set back decades by US bombing raids last weekend.
In an interview with US media network CBS, Mr Grossi said the raids by US stealth bombers had inflicted some but not total damage on Iran's nuclear facilities.
Speaking earlier this week Mr Grossi also said his inspectors' top priority was to return to Iran's nuclear facilities to assess the impact of recent military strikes on Tehran's nuclear programme.
Germany backs Israel after Iran war in first high-level visit
Separately, German Interior Minister Alexander Dobrindt has expressed support for Israel during a visit to the site of an Iranian missile strike near Tel Aviv.
It was the first visit by a senior foreign official since the war between Iran and Israel.
"We must deepen our support for Israel," Mr Dobrindt said, speaking amid the rubble in Bat Yam, south of the coastal hub of Tel Aviv, where an Iranian strike killed nine people including three children.
Read more:
Latest Middle East stories
Israeli Foreign Minister Gideon Saar called the German visit a gesture of "solidarity" and urged the international community to reimpose sanctions on Iran.
German Chancellor Friedrich Merz on 17 June, on the sidelines of a G7 summit in Canada, said Israel was doing the "dirty work... for all of us" by targeting Iran's nuclear infrastructure.
Israel has acknowledged being hit by more than 50 missiles during the 12-day war with Iran, resulting in 28 deaths, but the true extent of the damage may never be known due to stringent media restrictions.
In Iran, Israeli strikes killed at least 627 civilians and injured nearly 4,900, according to official figures.