CLINTON - A state district judge sentenced a Hammond man Monday to four years of home incarceration after the defendant pleaded guilty to accessory after the fact to negligent homicide.

Twentieth Judicial District Judge George H. Ware Jr. said Andrew Robertson, 25, will not be allowed to leave home during the four-year period except to go to work and church and for medical or other emergency reasons.

Robertson must follow a specific pattern and specific routes for his trips outside his home, Ware said.

Robertson was indicted for principal to first-degree murder in the July 2009 shooting death of Jeral Wayne Matthews Jr., 21, during a drug deal in Clinton.

Matthews was shot by Anthony Manzella III, also of Hammond, a friend of Robertson, when Matthews attempted to rob them, Clinton police said.

Manzella, known for exercising his right to carry a pistol in plain view, was tried in February on a first-degree murder charge, but the jury convicted him of negligent homicide.

Ware sentenced Manzella to five years in prison, suspended one year of the sentence and fined him $2,500.

The judge also ordered Manzella to pay for Matthews’ funeral.

Robertson’s home incarceration will be monitored by a private firm.

“That means no parties, no graduations, no birthdays,” Ware told Robertson.

The defendant’s attorney, Robert Gill, also reminded his client in open court that he would not get credit for time already served if he violated the conditions of home incarceration and was sentenced to four years in prison.