AUBURN, Mass. (AP) — A retired Massachusetts elementary school music teacher has pleaded not guilty to raping a female student.

Bail was set at $5,000 for Stephen Jaszek at his arraignment Thursday on charges of statutory rape of a child and aggravated indecent assault and battery on a child.

The 62-year-old former Auburn teacher who retired in 2014 was arrested at his South Hadley home Thursday.

Authorities allege Jaszek sexually assaulted the girl at the Julia Bancroft Elementary School over an extended period of time on school grounds and during school hours.

Auburn School Superintendent Maryellen Brunelle said the alleged assaults occurred about nine years ago.

Jaszek's lawyer says his client firmly denies the charges and is "shocked and confused" by the allegations.

The Telegram & Gazette reports a relative posted bail for Jaszek.