Andrew Webster, 56, is being held at the Bucks County prison.
Officers were called to Broadale Drive in Doylestown on Sunday afternoon.
Police issued a shelter-in-place order for the surrounding neighborhood as they called SWAT in to assist.
Webster was taken into custody about an hour later.
No one was hurt.