School fires gay teacher to 'preserve Catholic identity'