Teacher fired for 'inappropriate relationship with student