Three D.C. men were sentenced to prison terms Thursday in connection with a killing during a drug deal-turned-robbery last year, prosecutors said.

At about noon on Feb. 16, 2015, Tavon Pinkney, 20, William Bass, 18, and Kalif Brown, 23, all of D.C., were driven to the 300 block of 61st Street NE for a PCP transaction with Rico Myers, 25, and his friend, the U.S. Attorney’s Office for the District said in a statement. Pinkney then pulled a gun on Myers, demanding his possessions, the statement said, and Bass began going through Myers’s pockets while Brown robbed Myers’s friend.

When Myers began struggling to defend himself, Pinkney shot him four times, and the defendants ran to a car on 61st Street NE and fled in the vehicle, according to the statement. Myers ran out of the alley, collapsed on a sidewalk in the 300 block of 61st Street NE and was taken to a hospital, where he was later pronounced dead, the statement said.

The three men pled guilty to charges in April 2016 in District Superior Court, the statement said. Under their plea agreements, Robert E. Morin sentenced Pinkney to 17 years for second-degree murder while armed, Brown to five years for robbery and Bass to 5½ years for assault with intent to rob while armed, according to prosecutors.