Ali Akbar Velayati, a top international adviser to the leader of the Islamic Revolution, said that Saturday's incident in Nangarhar province signals that "it is time for the Americans to be expelled from Afghanistan," Iranian media reported.
The Pentagon confirmed that two US service members were killed and six others injured after an individual in "Afghan uniform" armed with a machine gun opened fire on a joint patrol in Afghanistan.
Velayati also echoed Tehran's vow, following the US assassination of Quds Force commander Qassem Soleimani, that American forces would soon be pushed out of the Middle East.
"Today, the era of the US presence in Iraq and Syria is over," he said during a ceremony commemorating the 40th day since Soleimani's killing.