Kenya says Russia has agreed to stop accepting Kenyan nationals into its military after concerns that hundreds of citizens had been drawn into the war in Ukraine.