Teacher fired over transgender controversy