Kenyans have expressed outrage after a video of police officers beating a student was widely shared online.