I really don't see anything wrong with it. I've had teachers make similar mildly off color jokes. And frankly I see this as a very mild off color joke. At worst he should've got a off the record talking to. Firing him is a complete over reaction by the school and I'm sure he'll get his job back. No way the teacher's union is going to allow this.