The Azerbaijani Ministry of Foreign Affairs said that it will evacuate today, Sunday, the employees of its embassy in Iran and members of their families, two days after an attack by a gunman that killed a security guard and wounded two others, which Baku described as a "terrorist act."

And the police in Tehran announced the arrest of a person suspected of being linked to the attack that took place on Friday and was convicted by the Iranian authorities, but stated that the motives of the gunman appeared to be personal rather than political.

And the Ministry of Foreign Affairs of Azerbaijan announced after the attack that it had summoned the Iranian ambassador in Baku to demand justice, and announced its intention to evacuate the embassy staff from Tehran.

It did not provide any other details, including whether the embassy would continue to operate.

The ministry said, earlier, that the shooting was a result of Tehran's failure to respond to its demands to enhance security.

Iranian investigation

Videos captured by surveillance cameras, a copy of which Reuters obtained, showed the attacker storming the embassy building and shooting two men before a third employee at the embassy controlled him.

Later, Iranian state television showed a man said to be the attacker.

The man said he was acting with the aim of releasing his Azerbaijani wife, who he believed was being held at the embassy.

A young woman, who was identified as the man's daughter, explained that her mother was in Azerbaijan.

Iranian state media reported that Iranian President Ebrahim Raisi called for a "comprehensive investigation" into the attack and sent condolences to Azerbaijan and the family of the dead man.