Stephanie Almedina Rivera of Bay Shore, left, William Madrey of Wyandanch, center, and Ciara Smith of Deer Park, were the three victims killed in a triple homicide late Wednesday, June 3, 2015, police said. A fourth person was injured in the shooting on Davidson Street. Photo Credit: Family; Facebook; Instagram

Stephanie Almedina Rivera of Bay Shore, left, William Madrey of Wyandanch, center, and Ciara Smith of Deer Park, were the three victims killed in a triple homicide late Wednesday, June 3, 2015, police said. A fourth person was injured in the shooting on Davidson Street. (Credit: Family; Facebook; Instagram)

Three Wyandanch residents have been charged with kidnapping and assault in a case that may be connected to an unsolved triple homicide that took place early last month.

Apparently intent on vigilante justice, Dominic Peterson, 26, Jahlil Cowan, 22, and Kasandra Toliver, 26, are accused of chasing a car with a man and a woman inside, and kidnapping and beating the woman.

Get unlimited digital access $14.99 A MONTH

Three Wyandanch residents have been charged with kidnapping and assault in a case that may be connected to an unsolved triple homicide that took place early last month.

Apparently intent on vigilante justice, Dominic Peterson, 26, Jahlil Cowan, 22, and Kasandra Toliver, 26, are accused of chasing a car with a man and a woman inside, and kidnapping and beating the woman.

But Peterson's attorney, John Schick of the Legal Aid Society, said in court Thursday that the man in the car was Justin Rivera, who Peterson believes was the shooter in the June 3 killings of William Madrey, 25, of Wyandanch; Stephanie Almedina Rivera, 23, of Bay Shore; and Ciara Smith, 23, of Deer Park.

Peterson was Madrey's housemate and partner in a music label. Schick said the shooting victims were killed as they sat in Peterson's Chevrolet Trailblazer.

Schick told state Supreme Court Justice William Condon the kidnapping case will fall apart because the female victim has fled the state and won't return and because Justin Rivera likely has no interest in cooperating with prosecutors.

Less than three weeks after the shooting, on June 19, Assistant District Attorney Lawrence Opisso said Peterson, Cowan and Toliver were in a Chevrolet Suburban when they chased and shot at a Nissan Versa.

Suffolk homicide detectives and the district attorney's office declined to comment on Schick's comments, nor would they say whether Rivera is a suspect in the killings. Police have suggested a gang dispute was behind the shootings. No arrests have been made.