Iran cannot afford a major conflict with Afghanistan. They now that if they commit significant resources to the Afghan border, Israel will have a golden opportunity to strike them. Afghanistan knows this as well, thus, the government is being very aggressive with the Iranians.