That's beyond unprofessional. I would report this to someone... or confront the teacher.
What Azfiddle is describing is part of the Responsive classroom procedure for removing a disruptive child. There is a pre-established plan.