A teacher of high-school language and literature has resigned after being denounced by a colleague.