MILFORD — Local police departments helped catch a New Jersey fugitive who had been accidentally released from prison.

In October and November, Milford police, Stamford police and the Drug Enforcement Administration’s Bridgeport task force had been investigating a man, known as “PRIMO” for trafficking narcotics in Milford.

The suspect, Daryel Rawls, 37, of Monroe Avenue, Neptune, N.J., was a passenger in a car that the agencies stopped on Monday.

Rawls tried to provide authorities with a false identity, Milford police said. He was also accused of possessing crack, cocaine, ecstasy and prescription medication.

Rawls was also wanted in New Jersey on narcotics charges. He had been mistakenly released from prison in 2017 after being convicted with a life sentence, according to New Jersey Advance Media.

He was charged Monday with fugitive from justice, possession of narcotics with intent to sell, possession of narcotics and interfering with arrest.

He was held on a $500,000 bond and was scheduled to appear in court on Nov. 13.