Education officials fired a substitute teacher after he allegedly ripped off an 8-year-old girl's headscarf at a Bronx elementary school last week.

The girl was sitting in teacher Oghenetega Edah's chair in a classroom at PS 76 The Bennington School in Allerton last Tuesday at around 1 p.m. when Edah, 31, told her to move, according to police. The girl evidently didn't move fast enough for the Edah's liking, and he yanked off the girl's hijab, hurting her eye in the process, an NYPD spokeswoman said.

The girl was taken to Jacobi Hospital to get her eye checked out.

"This alleged behavior is completely unacceptable," Education Department spokesman Michael Aciman said in a statement. "This individual was removed from the school immediately and his employment has been terminated."

Edah could not be reached for comment.

PS 76 is a K-5 school and had 1,064 students in the 2015-2016 school year, according to Education Department data. The student body is 87 percent African American or Hispanic, and 63 percent of students qualify for subsidized lunches. Discipline tends to be doled out in New York City public schools at different rates depending on a student's race: data shows that 99 percent of students handcuffed in schools in 2016 were black or Hispanic, and about 50 percent of suspensions in the 2015-2016 school year were issued to black students, who make up a little over 27 percent of the student population.