That is just wrong. Anyone who cannot deal with a five year old has not business being a teacher. If there were issues with his behavior they needed to be dealt with in private and with the parents.

Also, if I were the parent of one of the children that "voted him out" I would be having a long discussion about kindness.