TEHRAN: Iran’s Revolutionary Guards said Sunday they have deployed troops along the border with Azerbaijan and Armenia, following stray fire from the fighting over Nagorno-Karabakh.

ā€œUnits of (the Guards) ground forces have been dispatched to and stationed in the region,ā€ their commander Brig. Gen. Mohammad Pakpour said, quoted by state news agency IRNA.

Their mission was ā€œto protect national interests and maintain peace and security.ā€

Pakpour said Iran respects its neighbors’ territorial integrity but that ā€œany shift in border geopolitics is the Islamic Republic of Iran’s red line.ā€

The commander visited the border county of Khoda Afarin on Saturday, the Guards’ website Sepahnews reported.

The region in Iran’s East Azerbaijan province borders territory in Azerbaijan adjacent to Nagorno-Karabakh.

Khoda Afrin and nearby villages have reportedly been hit by stray cross-border mortar fire.

ā€œIf there is any repetition of such fire, the Islamic Republic of Iran will not remain indifferent,ā€ foreign ministry spokesman Saeed Khatibzadeh warned on October 16.

In the first week of the fighting, mortar rounds repeatedly strayed across the border, with one wounding a six-year-old child.

Armenia and Azerbaijan have for decades been locked in a conflict over Nagorno-Karabakh, an ethnically Armenian region of Azerbaijan which broke away from Baku in a 1990s war.

Both sides have defied international calls for a cease-fire since all-out war erupted on September 27.

On Thursday, Azerbaijan said it had taken full control of its border with Iran as Baku pressed its assault on Nagorno-Karabakh, driving out Armenian forces near the frontier.

Armenia also borders northwest Iran.