An NYPD officer who was shot in the head while sitting in an unmarked car in Queens Saturday has died from his injuries. 

Brian Moore, 25, died Monday, the NYPD confirmed. 

"Condolences to the family of PO Brian Moore who lost his life today. RIP to a true hero. We will never forget. #Hero," the NYPD 104th Precinct tweeted Monday afternoon. 

"The shooting of Officer Brian Moore over the weekend was a deplorable act of violence that has robbed New York of one of its finest," New York Gov. Andrew Cuomo said in a statement Monday. "As a member of the NYPD, Officer Moore put the safety of his fellow New Yorkers before his own, and we will remember his service with gratitude and pride. I join with all New Yorkers in mourning his passing and send my deepest condolences to his friends and family."

Moore underwent surgery for what court papers described as "severe injuries to his skull and brain" and had been in a coma. 

The suspect, Demetrius Blackwell, was ordered held without bail Sunday after appearing in Queens Criminal Court. He did not enter a plea to charges of attempted murder.

According to the New York Post, Blackwell has a record of 10 arrests, including five on charges of robbery, criminal possession of a weapon and grand larceny.

Prosecutors planned to present the case to a grand jury before Blackwell's next court appearance on Friday.

Blackwell's court-appointed lawyer, David Bart, said his client denied the charges.

Police on Monday continued to search for the weapon.

Assistant District Attorney Peter McCormack said Moore and patrol partner Erik Jansen -- both in plainclothes in an unmarked police car -- approached Blackwell on a Queens street after seeing him tugging at his waistband around 6:15 p.m. Saturday and asked him "What are you carrying?"

The officers ordered Blackwell to stop and exchanged words with him. That's when Blackwell turned, the prosecutor said, and "in a vicious manner started to fire" -- at least two shots.

Jansen was not hit and radioed for help.

Moore, who has been on the job since July 2010, comes from a family of police officers. His father and uncle are retired NYPD sergeants, and his cousin is a city cop, the New York Post reported.

Moore's listed address is a small, well-kept house in the Long Island hamlet of Massapequa -- a tight-knit community where neighbors have known each other well for decades. Many families have relatives who are police officers.

Neighbors had only kind words for Moore, some saying they shed tears after hearing he was shot.

"He's a good kid," an unidentified woman told the New York Post. "We're all praying for him. I've known him since he was a baby."

The Associated Press contributed to this report.