BROOKLYN - A man convicted of killing a New York City police officer in 2007 was sentenced to life behind bars without parole Wednesday.

In addition to the life sentence for killing Detective Russel Timoshenko, Dexter Bostic also received 40 years to life for attempting to murder Detective Herman Yan and 15 years for three weapons charges.

On July 9, 2007, the two officers made a routine traffic stop on Prospect Lefferts Gardens, pulling over an SUV, which turned out to be stolen. That is when investigators say two of the men sitting inside the vehicle opened fire on the officers.

"You shot Russel Timoshenko," said Judge Plummer Lott, when he announced Bostic's sentence. "That .45 was in your hands, and you pulled the trigger."

Responding to the verdict, Bostic defended his innocence, saying he did not commit the crime he had been convicted of. He vowed to appeal his conviction.

"He was unrepentant to the end," said President of the Police Benevolent Association Pat Lynch. "He blamed everyone he possibly could."

Bostic's co-defendant Robert Ellis was acquitted of murder, but found guilty on weapons charges and sentenced to 15 years in prison. A third defendant, Lee Woods, will face a second trial after the first ended in a mistrial.

1 of 3 suspects takes stand in Timoshenko trial