The man was dead. So a deputy figured it was a good time to steal from him. Wrong move.

A family is “outraged and disgusted” after seeing a video of a deputy, in full uniform, rifling through their dead father’s kitchen and stealing his prescription medications.

The house belonged to Moe Rosoff, 85, who lived alone after the death of his wife Edith in June. Rosoff was weathering Hurricane Irma in September. Two days after the storm, Rosoff fell and hit his head in the master bedroom during a power outage. Rosoff’s son Jay Rosoff, who lives in North Carolina, had asked officers to conduct a welfare check on his dad when he did not hear from him.

Three Palm Beach County Sheriff’s deputies took the call and found Rosoff on the floor of the bedroom. He was taken to Delray Medical Center, where he later died.

Ninety minutes later, the home surveillance system, installed by Rosoff’s sons Jay and Steven, detected motion inside the house and sent a notification to Rosoff’s sons, the Sun Sentinel reported.

The family was shocked to see another deputy, who had not been a part of the original call, strolling through the front door into the neatly kept kitchen, flashlight in hand despite broad daylight, poking into drawers and removing prescription medications. The man is then observed walking down a hallway into the bedroom.

Jay Rosoff reported what he had seen on the video to the Palm Beach County Sheriff’s Office. The family later released the video. A sergeant recognized Deputy Jason Cooke as the man in the video. The family alleges Cooke stole Rosoff’s prescription medication from the surveilled kitchen, as well as money and jewelry from the master bedroom, which did not have a camera.

“We were outraged and disgusted when we viewed this,” the family said in a statement. They believe Cooke received the garage door entry code over his police radio.

Investigators searched Cooke’s patrol car and found 60 pills, including Vyvanse, a central nervous system stimulant, 47 pills of Tramadol Hydrochloride, a pain killer, Proclorperazine Maleate, an anti-psychotic drug, and Carisoprodol, a muscle relaxant, WPLG Local 10 reported.

“Not all of these medications we think were taken from our father, leading us to believe that this was not Officer Cooke’s first crime. … If Officer Cooke was operating in his official capacity under these medications, it is our belief that he may have posed a significant threat to the public’s safety,” read the family’s statement, which was released Tuesday.

Cooke was booked into the Palm Beach County Jail on a $28,000 bond, placed on administrative leave, and charged with burglary and theft of prescription medication. At his court date on Oct. 20, Cooke said he was at a death investigation and recovered some medications from the call but had not submitted them into evidence. He did not say the investigation pertained to Rosoff, the Sentinel reported. The judge ordered him to continue substance abuse treatment, WPEC-CBS12 reported.

The Palm Beach Sheriff’s Office released a statement that read, in part, “Unfortunately sometimes an employee makes a bad decision which leads to misconduct… we investigated and determined his actions were criminal in nature.”