The exact details of the deal, which signal a deepening of ties between Moscow and Kabul, remain unclear.