The 37-year-old man charged in the shooting of the New York City police officer Brian Moore during an encounter in Queens Village in 2015 was convicted on Thursday of murder.

The 12 jurors, who began reviewing evidence on Wednesday, delivered their verdict against the defendant, Demetrius Blackwell after about five hours of deliberations. As the verdict was read, ending a nearly three-week trial, the father of the slain officer looked at the ceiling, his eyes closed, as those around him bowed their heads inside the windowless courtroom, presided over by Justice Gregory L. Lasak of State Supreme Court in Queens.

Mr. Blackwell, who was dressed in a white button-down shirt and black slacks, turned and whispered, “I love you,” to a man and a woman in the gallery behind him. Court officers led him away, his hands cuffed behind him.

Though the shooting occurred more than two years ago, on May 2, 2015, it still haunts Officer Moore’s colleagues at the 105th Precinct station house and throughout the Police Department.