ALLEGANY, NY -  A man with a gun who had barricaded himself inside a vehicle on West Branch Road was taken into custody by New York State Police Tuesday evening after a seven-hour standoff, according to an email announcement from the St. Bonaventure University Office of Safety and Security.

The standoff ended without incident at about 9:20 p.m., Safety and Security Director Gary Segrue wrote in the email to the university community.

In an earlier email on Tuesday, Segrue said  a crisis negotiator was on the scene, He also urged members of the campus community to avoid the West Branch Road area.