PARSONSFIELD, Maine — A man allegedly high on heroin led deputies on a chase through several towns Thursday night, injuring a deputy before crashing his car into a stone wall.

Clifford Perkins, whose age and address were not immediately available, was charged with eluding an officer, reckless conduct with a dangerous weapon and assault on an officer, according to a release posted on the York County Sheriff’s Office Facebook page.

At about 10:30 p.m. Thursday, deputies were called to the Village Variety Store in Parsonsfield for a report that a person appeared to be passed out in a vehicle parked beside the building.

Deputy Bob Carr allegedly found Perkins slumped over the driver’s side of his vehicle. When Carr attempted to remove the keys from the vehicle, Perkins awoke, started the vehicle and drove off, allegedly with the deputy’s arm still inside the vehicle. Carr sustained minor injuries but was able to free himself to avoid being dragged by the vehicle.

Carr, who was soon joined by other deputies and Maine State Police troopers, pursued Perkins for 24 miles, into Porter, Hiram and Cornish before returning to Parsonsfield, where Perkins crashed into a stone wall and fled into a field.

Deputies used a Taser to subdue Perkins.

Deputies found a hypodermic needle in Perkins’ pocket, who allegedly admitted to shooting heroin earlier in the evening, according to the release. Additional hypodermic needles and an empty wrapper that appeared to have heroin residue in it was found in the front seat of the vehicle.

Perkins was wanted on Knox County and Cumberland County warrants for unpaid restitution, according to the sheriff’s office.

He remains in the York County Jail held on $50,000 cash bail. His next court date was not immediately available.