Ten people suffered minor injuries Thursday afternoon after an escalator malfunctioned at Stuyvesant High School in Manhattan, the city fire department said.

It happened shortly after 3:40 p.m., authorities said.

According to the FDNY, one student's big toe was partially amputated. Sources said all the people injured are students.

"I just see this kid lying down on the ground, at the bottom of the escalator. And then I just see blood all over the floor, his foot was cut. You could see, like, bones," one student witness said. "The kid, he was screaming out of pain and you could just see flesh — literally flesh — with skin on the floor."

The rest of the injuries ranged from bumps and scrapes to ankle and foot injuries. The students were being treated at local hospitals.

Officials did not confirm the cause of the incident but said it happened during dismissal. The FDNY said it was unsure how long the second-floor escalator has been in operation.

"The safety of students and staff is our top priority. FDNY and EMS responded to a serious incident involving an escalator at Stuyvesant High School and students are being treated for non-life threatening injuries. We're providing the school, students, and families with additional support and will conduct an investigation," an education department spokesperson said.

The escalator is out of operation as officials investigate it. The city buildings departments said it had not received any recent complaints, or issued any recent violations, for the school's escalators.