Stuart was taken into custody Friday and was being held on $250,000 bail, the Gloucester County Prosecutor's Office said. He initially was charged with two counts of aggravated assault and was released last Saturday after posting $10,000 bail.
The two men knew each other for several years, authorities said, declining to elaborate. The shooting "was not random," the Prosecutor's Office said.
This week, John Eastlack Jr., a Cherry Hill lawyer who represents Stuart, described the shooting as "a horrible accident."
Stuart was suspended with pay after the shooting.
Eastlack declined to comment Friday after Stuart was charged with murder.
Deptford Police Chief Daniel R. Murphy released a statement offering condolences to the Compton family. The department also said its officers "remain committed to ... public safety."
"Our police officers are among the best trained in our state and perform their duties extremely well," the statement read.
The statement from Compton's family thanked the staff at Cooper and said Compton's organs would be donated.
"It is with great sadness that we announce the passing of our beloved son and brother, David," the statement said. "While it was our hope that David would be able to overcome the injuries he suffered, it has become apparent that, despite receiving the finest medical care, his injuries were just too severe."
Contact Darran Simon at 856-779-3829 or at dsimon@phillynews.com, or follow on Twitter @darransimon.