There are a lot of military and other sensitive facilities in Iran.
Photography near military and other government installations is strictly prohibited. Any transgression may result in detention and serious criminal charges, including espionage, which can carry the death penalty. Do not photograph any military object, jails, harbours, or telecommunication devices, airports or other objects and facilities which you suspect are military in nature. Be aware that this rule is taken very seriously in Iran.