Deputy caught on video burglarizing home of hurricane victim, authorities say

Jason Cooke resigned after he was accused of breaking into dying man's home.

— -- A Florida sheriff's deputy resigned after he was accused of stealing a dying man's medication when he allegedly entered his home, which was hit by power outage during Hurricane Irma, illegally.

The Palm Beach County Sheriff's Office confirmed that Deputy Jason Cooke officially left the department on Wednesday, according to a statement.

Cooke had been captured on surveillance cameras inside a home in Boynton Beach after the system sent an alert to the homeowner's children.

His son Jay Rosoff requested a check on his father; he was worried after the storm subsided and cameras failed to pick up any movement in the home. Responding officers found Moe Rosoff on the floor of a master bathroom. His family said he'd fallen and hit his head during a power outage in the storm.

He was rushed to a hospital, where he later died.

Utah nurse who was arrested says officer was on a 'warpath'

Bodycam video appears to show Baltimore police officer planting evidence in drug bust, public defender says

According to the police report, the surveillance system sent an alert around 10:55 a.m. to Jay Rosoff and his brother Steven Rosoff that movement had been detected in the house.

"They viewed the footage and saw a deputy enter the residence through the garage," the police report said.

The Rosoffs reported the incident to police. According to the report, the video showed an officer, who authorities eventually identified as Deputy Cooke, allegedly going through cabinets, emptying containers and placing items in his pockets. Police said Cooke had not been told to report to the Rosoff home.

When officers spoke with Cooke and showed him the video, the police report said, he allegedly told them that he'd used the "garage code that was in the dispatch log" to enter the home.

On Wednesday, before Cooke tendered his resignation, the Palm Beach Sheriff's Office said the case was still under investigation.

"The Palm Beach County Sheriff's Office holds its employees to the highest standards and never forgets about its duty to preserve the public's trust. Unfortunately, sometimes an employee makes a bad decision which leads to misconduct. This misconduct was reported, investigated and subsequently determined to be criminal in nature, resulting in the charges. The Sheriff's Office will remain vigilant to ensure that our efforts are professional and meet the high standards that the public has come to expect," the department said in a statement to ABC News affiliate ABC15.com.

The Rosoff family released a statement before Cooke resigned that said, in part, that they were "outraged and disgusted" when they saw the surveillance video.

"Had we not had this video, this cop would still be out there posing a threat of danger to the community he swore to protect and committing more crimes. It is our hope that the justice system treats this cop like any other criminal out there and that he doesn't receive further preferential treatment because he is a police officer," the family said.

Stuart Kaplan, Cooke's lawyer, told ABC News that the officer was remorseful and had shown "tremendous contrition."

Kaplan said Cooke was addicted to pain medication and was in the middle of treatment when he was arrested. He said that Cooke had been receiving treatment for "some period of time" and was working to get himself healthy.

"It's a very sad situation," Kaplan said. "This is not a person who's out there selling drugs. This is a person having difficulty with an addiction problem ... This is a young man who has had a lot of strife in his life ... It's very, very unfortunate."