Updated

A former Bennington high school teacher has surrendered his teaching license after being treated at a psychiatric hospital last month after he was spotted carrying the same kind of assault rifle used in December's school shooting in Newtown, Conn., and making comments about his school that some found disturbing.

The Vermont Agency on Education says Steven Davis surrendered his license Feb. 7.

Davis, a long-time science and math teacher at Mount Anthony Union High School, was hospitalized Jan. 1 after neighbors spotted him carrying a semi-automatic rifle. Davis also posted videos online criticizing school administrators, the teachers union and co-workers.

The Bennington Banner says Davis on Thursday agreed to a court order to not go to the home or workplace of a school administrator mentioned in the online videos.