Teacher accused of sexual relationship with student