The Potter County Sheriff's office says the man was spotted after 4 p.m. and someone called for help.
After a short search, the man was taken into custody.
No one was evacuated, and no one was hurt.
Offices for Potter County are housed in that building.
Copyright 2016 Nexstar Broadcasting, Inc. All rights reserved. This material may not be published, broadcast, rewritten, or redistributed.