Russia says ‘hasty withdrawal’ put Afghanistan at risk