A Pennsylvania man who threatened to “put a bullet” in President Trump’s head and then evaded the police for three months by surviving in the wilderness was arrested on Friday in Ohio, the authorities said.

The fugitive, Shawn Richard Christy, 26, was captured in a wooded area of Mifflin Township, a town of about 6,000 in Richland County in northern Ohio, according to the United States Marshals Service.

Mr. Christy was found hiding between large rocks on a streambed and had a knife and handgun on him, the authorities said. He was arrested without incident, said Robert Clark, a supervisory deputy United States marshal.

Mr. Christy, a self-described survivalist, had evaded the authorities since June by stealing supplies and living in wooded areas. The manhunt intensified this week after the authorities found a truck, which they believed that Mr. Christy had stolen, near Mansfield, Ohio.