A teacher is on administrative leave and a minor was charged with assault at a Baltimore high school after a heated exchange quickly turned physical.

The altercation, which took place at Carver Vocational-Technical High School, was caught on camera. The names of those involved have not been released, according to WBALTV. The video shows a female teacher who appears to charge a female student, then throws the student against lockers and pulls her hair. A male student attempts to intervene and break up the fight.

But another part of the video shows what happened before the teacher lashed out at the student. In the classroom, the teacher appears to order the female student to stop using her phone while the class is taking a test. The student is seen shoving a chair towards the teacher and appears to throw something at her. The student slams an object down on the teacher’s desk and rushes out of the room.

When the teacher confronts the student in the hallway, the student throws a book at the teacher, prompting the teacher’s physical response.

While at least one parent interviewed for the story said that the teacher was in the wrong and should have acted more professionally, a student at the school said the teacher’s actions were justified because they were in self-defense.

A media statement from the school said that the teacher was treated for injuries and placed on administrative leave while an investigation is conducted. The student was charged with assault. There was no comment from the teacher or the student.