Police said after the confrontation, Charles Beiter, of Delmont, tried to break into a detached garage and then ran off.
Police said Beiter was wearing firefighter apparel and was driving a silver Mitsubishi SUV.
Investigators said home surveillance video helped them identify Beiter as the suspect.
Louis Gradisek lives in the home and told Pittsburgh’s Action News 4 that he was home as this all was unfolding.
“I just happened to look out on the deck and I just happened to see him walking around out there,’ Gradisek said.
Investigators said troopers searching nearby heard about a man with the same description stealing items from a car and then running away.
Police also said Beiter was streaming on Facebook live around the time of the incident but attempts to locate him based on that were unsuccessful.
Police said he was later discovered in the area and taken into custody after a traffic stop.
Beiter is now in the Westmoreland County Prison facing several charges including attempted burglary and impersonating a public servant.
He is scheduled to have a preliminary hearing on Jan. 23.