VIDEO: Tens of Thousands Attend Funeral for Slain NYPD Officer

Police Commissioner Bill Bratton hailed the young NYPD officer slain on patrol in Queens last weekend as a smiling, devoted cop who dreamed of being in the force like his father and wanted to get the "bad guys off the street."

"He dreamed of being a cop," Bratton said Friday in a heart-wrenching yet at times humorous eulogy for 25-year-old Long Island native Brian Moore. "He dreamed of following his dad who he loved so much. He dreamed of getting the bad guys off the street. He wanted to make a difference."

Before the procession, a solemn quiet was only broken by the sound of bagpipes as Moore's hearse was driven to the overflowing St. James Roman Catholic Church. A sea of officers in dress uniforms from as far as California, Louisiana and Canada lined the street in salute. Heavy security was in place outside; snipers watched from perches at a nearby elementary school, and authorities imposed a 3-mile no-fly zone during the ceremonies, NBC New York reports.

Moore, who lived in North Massapequa, died after being taken off life support Monday, two days after being shot in the head while on duty in Queens Village. The young man, who came from a family of NYPD, and his partner had stopped a man suspected of carrying a handgun when the man opened fire, authorities have said. Moore's partner was not injured.

Moore's funeral comes five months after two other NYPD officers, Rafael Ramos and Wenjian Liu, were killed in their patrol car, ambushed by a man who had posted online about killing police in revenge for the chokehold death of Eric Garner on Staten Island.