A Toronto high school teacher who was facing four sex-related charges stemming from his time as a camp counsellor has committed suicide.

David Dewees, 32, laid down on the subway tracks in front of an oncoming train shortly after 8 a.m. Saturday at High Park station, to the horror of a number of onlookers.

Dewees, a teacher at Jarvis Collegiate, was arrested last Thursday and charged with two counts of invitation to sexual touching and two counts of luring. He was released on $25,000 bail after a court appearance on Friday under orders not to go onto the Internet and to stay away from children.

Toronto police alleged Dewees befriended two boys under the age of 16 when he was a counselor at the Ontario Pioneer Camp in Port Sydney, and had inappropriate contact with them over the Internet between July 2008 and July 2009.

He was suspended from Jarvis Collegiate when the charges came to light.

Dewees had volunteered at the Christian camp, which is located southwest of Huntsville, since 1997.

He had taught Latin and English to Grade 10 students at Jarvis Collegiate since 2003. None of the charges was related to contact with students at the school.