Teacher sacked