Brockton Police narcotics detectives arrested four people, including two 17-year-olds, in what police said was a heroin deal on Shealey Avenue Wednesday night.

Brockton Police Lt. Paul Bonanca said officers observed a Mazda SUV parked on Shealey Avenue at 6:30 p.m. Bonanca said shortly after a white Buick pulled up behind the Mazda with three people inside.

A man got out of the Mazda and went and sat down inside of the Buick with the three others, Bonanca said.

"Detectives swarmed the vehicle as a suspected narcotics transaction was believed to be occurring," Bonanca said.

Inside the Buick police found 22 bags of heroin. The operator of the car was also found with crack cocaine.

Christopher Jorge, 22, of 11 Edna Circle, East Freetown, the operator of the Mazda, was charged with conspiracy to violate the controlled substance act.

Jason Miranda, 18, of 26 Acorn St, Brockton, the operator of the Buick, was charged with possession with intent to distribute a Class A substance, possession with intent to distribute a Class B substance and conspiracy to violate the controlled substance act.

A 17-year-old male was charged with conspiracy to violate the controlled substance act.

A 17-year-old female was charged with of possession with intent to distribute a Class A substance and one count of conspiracy to violate the controlled substance act.

All four are scheduled to be arraigned in Brockton District Court Thursday.