An attack also targeted the headquarters of the Ministry of Intelligence in Tehran.