Afghanistan occupies a central position in Tehran’s changing playbook, as the country is both a risk and a buffer for Iran.