FORT FAIRFIELD, Maine — A convicted felon who allegedly threatened several people with a firearm over the weekend and then fled from police was captured by agents with the Federal Bureau of Investigation in Connecticut Wednesday afternoon.

Michael Charm, 32, of Presque Isle, was arrested without incident by the New Haven office of the FBI SWAT team and fugitive task force in Hamden, Conn., said Fort Fairfield police Chief Bill Campbell Wednesday evening.

Charm was wanted by the Fort Fairfield Police Department on charges of felony terrorizing, possession of a firearm by a prohibited person and violating conditions of release.

He allegedly brandished a .22-caliber rifle inside a home on Houlton Road Saturday afternoon.

Police said that when they arrived at the home, the residents were outside and believed Charm was inside. They tried to make contact with Charm by cellphone but were unsuccessful. Police eventually went in the home and secured his loaded rifle.

A family member told police that Charm was on the railroad tracks near Bryant Pond Road. Police searched for several hours, but Charm was able to elude capture.