A veteran NYPD detective who was recently stripped of his gun due to personal problems committed suicide at his mother’s Queens home while off-duty on Monday, law enforcement sources said.

Second-grade Detective Paul Federico, 53, was found hanging in the house on 79th Street in Middle Village around 12:25 p.m., sources said.

He was pronounced dead at the scene but no note was found.

“His wife was in front screaming,” said neighborhood resident Mario Kustera, 53.

“She was saying, ‘Why did my husband do this?’”

The 29-year veteran was a 9/11 first responder who helped searched for human remains amid rubble brought to the Fresh Kills on Staten Island.

He’d lost a kidney to cancer within the past two years, sources said.

“He was very dedicated to the job and to the department and he’ll be sorely missed,” Detectives’ Endowment Association President Paul DiGiacomo said.

Federico was recently stripped of his gun and placed on restricted duty due to unspecified personal problems, sources said.

Federico had sought counseling through the department, but it’s unclear if that led to his change in status.

He was most recently assigned to Police Commissioner Dermot Shea’s liaison unit, sources said.

Federico is the first NYPD cop to take his own life in 2020.

Last year, ten active-duty NYPD cops took their own lives, double the rate of recent years.

The crisis led the department to create a new suicide-prevention program called “Finest Care” that offers free treatment from NewYork-Presbyterian psychiatrists and psychologists.

Federico had two adult children and a brother, Anthony, who’s an officer with the Rockville Centre Police Department on Long Island, sources said.

Federico once helped secure benefits for an NYPD auxiliary officer who developed skin cancer after volunteering at Ground Zero after the Sept. 11 terror attacks.

The volunteer cop, Michael Dorian, was interviewed by News 4 New York in Lower Manhattan on Sept. 12, 2001, and video of that interview was used as proof in order to secure the benefits from the September 11th Victim Compensation Fund, the station reported in 2018.

Federico, who had befriended Dorian during the recovery efforts, helped him track down the footage, the News 4 said.

“I’m glad that Mike is now covered, but Mike still has cancer,” Federico told the station at the time. “I’m hoping that they can find a cure for that. That’s what I’m hopeful for.”