Archbishop defends firing of teacher in gay marriage