That's terrible and uncalled for!
The teacher should have refrained from such language, and used a little PC at the same time, and called her a "dog" instead. ; )