Police: Elementary school teacher accused of having sexual relationship with 12-year-old student