The student was walking to school when he was stopped by ICE agents, who badly injured him, school officials said.