Teacher wins age discrimination compensation after sacking