Teacher jailed for fondling student