QUEENS - Thousands of people attended a funeral Monday morning for NYPD Officer Dennis Guerra, who died last week after being critically injured in a fire on Coney Island.

Fellow police officers lined the streets outside St. Rose of Lima Church in Queens as Guerra's funeral took place inside. His flag-draped coffin was then brought out. Mayor Bill de Blasio and NYPD Commissioner Bill Bratton were among those who spoke at the funeral. Guerra was remembered as a caring and generous person who loved his job.

Guerra died Wednesday, three days after he was critically injured while responding to a fire on Coney Island. His partner, Officer Rosa Rodriguez, was also injured and remains hospitalized.

Police have arrested 16-year-old Marcell Dockery, who allegedly told police he started the fire because he was bored. Dockery now faces charges including murder.

Guerra is survived by his wife and four children. He was laid to rest in Queens after the funeral.