Hundreds of officers standing outside the church where a funeral is being held for a New York City policeman killed in an ambush shooting have turned their backs on the mayor as he spoke during the service.

The reaction Saturday follows comments from police union officials who said Mayor Bill de Blasio contributed to a climate of mistrust toward police amid anti-police protests.

Inside the church at Officer Rafael Ramos' funeral, mourners gave de Blasio polite applause before and after his speech.

The mayor said hearts citywide were aching after the shootings that left Ramos and his partner dead.

The police union president and others turned their backs on the mayor in a sign of disrespect at the hospital after the Dec. 20 shooting. Lynch blamed de Blasio then for the officers' deaths and said he had blood on his hands.

More From Newstalk KGVO 1290 AM & 98.3 FM