Teacher who told students to pledge allegiance to gay pride flag has been removed from the classroom