MILFORD — Two city teens remained in custody Wednesday after a 14-year-old allegedly put a gun to the head of an alleged drug dealer, with whom the gunman and others had earlier arranged a marijuana deal on Bridgeport Avenue, police said.

Three teens, ages 14, 16, and 17, arranged to buy marijuana with a fourth person, but decided to rob him instead, police said.

The teens were not identified because of their ages. The age of the robbery victim was not available.

Prior to the robbery Monday, police said, the 16-year-old obtained a handgun and gave it to the 14-year-old.

When the 16-year-old and the victim met at about 11:30 p.m. Monday near the 1000 block of Bridgeport Avenue, the two other teens approached them from behind with their faces covered. The 14-year-old grabbed the victim by the neck from behind and put the gun to his head, police said. The 17-year-old then took the marijuana and personal belongings from the 16-year-old. The 17-year-old and 14-year-old then fled together.

Police did not say whether the 16-year-old giving up his personal belongings to an alleged co-conspirator was staged or a double-cross.

But the 16-year-old was found by police Tuesday at a house with the 14-year-old and evidence of the robbery, including the gun, police said.

They were both taken into custody without incident and the gun and other evidence were seized by police, said police spokesman Officer Jeff Nielson.

The 16-year-old was being held in lieu of $150,000 bail following arraignment Wednesday. The 14-year-old was transferred to a Juvenile Detention Center, police said. It was unclear Wednesday if he was still in state custody.

Both are charged with firstdegree robbery, carrying a pistol without a permit, criminal use of a firearm, risk of injury to a minor, first-degree reckless endangerment, second-degree larceny and conspiracy to commit first-degree robbery and larceny. More arrests are expected, police said.