This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

A gang member involved in an ambush shooting that killed an Oceanside police officer in 2006 has been sentenced to 25 years in prison.

The San Diego Union-Tribune says 28-year-old Jose Compre was sentenced Friday for the 2006 killing of Officer Dan Bessant during a traffic stop.

Prosecutors say Compre and two other gang members — who were teenagers at the time — watched the traffic stop from about a half-block away and decided to ambush the 25-year-old officer, who was shot in the heart.

The other attackers were convicted of murder several years ago but a judge dismissed the case against Compre for lack of evidence. He was rearrested and charged with murder in 2016 based on additional evidence.

Compre pleaded guilty to a lesser charge of voluntary manslaughter.