Russia and the Taliban-controlled Afghanistan have signed a military cooperation agreement, one year after Moscow removed the Taliban from its list of terrorists and officially recognized them as the authorities.