Veteran NYPD Officer Robert Echeverria, the ninth city cop to commit suicide this year, was remembered Wednesday as a funny “prankster” at a somber funeral service — as his young daughter’s gut-wrenching cries pierced the funeral parlor.

Echeverria, 56, a married father of two who had more than 20 years on the force, was off-duty when he fatally shot himself in the head at his home in Laurelton, Queens, last Wednesday night.

The cop, who was assigned to the NYPD’s Strategic Response Group, killed himself just a day after NYPD Officer Johnny Rios fatally shot himself at his Yonkers home and amid a rash of suicides that has shaken the department.

The heartbreaking sobs of Echeverria’s 11-year-old daughter, Faith, could be heard throughout the emotional morning service at the J. Foster Phillips Funeral Home in Jamaica, which was packed with more than 100 family members friends and officers in their dress blues.

“Daddy…my dad,” the grieving child wailed.

Before the service got underway, Echeverria’s wife, Sheila, Faith and her brother Robert Jr. approached the open-casket and Sheila gave her husband a final kiss goodbye before the casket was closed.

Rev. Rasheed Baird asked mourners not to blame themselves for the tragic loss.

“I’m going to ask you to reach out and grab your family members hand that is seated right next to you…and squeeze that hand and say, ‘Family, I know this is a difficult time, but I’ve got tell you something, the situation we find ourselves in this day is not my fault,’” Baird said.

Outside the funeral home, roughly 150 NYPD officers stood in formation for a final salute as Echeverria’s casket was loaded into a hearse by seven NYPD pallbearers.

Robert Jr. walked out of the funeral home clutching his dad’s NYPD hat and Faith kissed the department flag that was presented to her mother.

Among the mourners was Officer Dyanne Marzano of the 111th Precinct who often worked details with Echeverria.

“We’re really going to miss him so much,” she said, describing Echeverria as a “funny” “prankster” and a “great guy” who “would do anything” for a friend.

“There were no red flags. It’s really sad. We’re all heartbroken,” she said.

Commenting on the spate of suicides to rock the department, Marzano said: “We can’t figure this out. It’s becoming an epidemic.”

Daniel Tirelli of the Police Benevolent Association remembered Echeverria as someone who “was always happy, always joking around.”

“He took the job seriously,” Tirelli said, adding that his death is “a real surprise to everybody.”

“It’s a shame to see his daughter in such pain,” Tirelli said.

Echeverria’s sister, Eileen Echeverria, previously told The Post that her brother long suffered from mental health problems and said that she warned the NYPD about him in June.

Eileen sent an email to the NYPD’s Internal Affairs Bureau, saying that her brother should not have a firearm, she said.

Ultimately, according to Eileen, her brother’s firearms were taken away and then returned a few days later when an NYPD psychiatrist deemed he was not a risk to himself or others.