A former teacher at a Connecticut magnet school has been charged with engaging in a sexual relationship with a 14-year-old student.