Former middle school teacher admits sex with student, turns herself in