Randy Desmond Riley and Nathan Tremain Johnson pulled their shirts over their heads as they were escorted into court by sheriffs. (Craig Paisley/CBC)

Two 21-year-old men have been charged with first-degree murder in the death of Donald Chad Smith, a pizza delivery driver who was shot to death in Dartmouth more than two years ago.

Randy Desmond Riley of Dartmouth and Nathan Tremain Johnson of Cherry Brook were arrested Wednesday morning and the charges against them were sworn Thursday morning in Dartmouth provincial court.

"We do believe that the suspects and the victim knew one another. We believe that the victim was lured to the location where he was shot. So this was not a random incident and it was not drug related," said Halifax Regional Police Const. Pierre Bourdages.

Both men pulled their shirts over their heads as they were escorted into court on Thursday. Riley and Johnson spent their brief moment in court surrounded by sheriffs before they were taken back to cells.

"Both Mr. Johnson and Mr. Riley have an opportunity to have bail hearings at their leisure. They just have to give the Crown notice," said prosecutor Perry Borden.

The have been remanded into custody and their cases have been set over until Aug. 27.

Tensions were high in court. It was the first time the slain man's family had seen the suspects in custody. One woman struck a TV camera man with a cane on her way out of the courtroom.

A 26-year-old former Dartmouth man, who was arrested at an undisclosed location outside the province on Wednesday, was released without charges.

Smith died of a single gunshot wound just before 9:30 p.m. on Oct. 23, 2010. He was found at a three-storey apartment building at 15 Joseph Young St. in north-end Dartmouth.

On the night the 27-year-old was shot, the call to the pizza shop on Primrose Street was placed from a pay phone on Highfield Park Drive between Joseph Young and Burnside Drive, Halifax Regional Police said at the time.

Smith was from Windsor Junction, a small suburban community in the Halifax Regional Municipality. He left behind two daughters.

Smith would have been 30 years old on Thursday.