ROBERTSDALE, Ala. (AP) — A teacher has been accused of having inappropriate sexual contact with a student in Alabama.

News outlets report 51-year-old John Daniel Hamilton was arrested by Robertsdale police Tuesday morning after a two-week investigation. Investigators say Hamilton and the girl engaged in sex acts inside Hamilton's history classroom during school hours.

The Central Baldwin Middle School teacher and bus driver was placed on administrative leave Feb. 5.

Baldwin County District Attorney Robert Wilters said at a news conference that the sexual relationship had been reported to school officials by another student.

Hamilton is charged with several counts, including second-degree sodomy. He is expected to make his first court appearance Wednesday for a bond hearing. It is unclear if he has a lawyer.