Two Okaloosa County Sheriff's Office deputies investigated for their role in the shooting of a suicidal man have been cleared.

DESTIN — Two Okaloosa County Sheriff's Office deputies investigated for their role in the shooting of a suicidal man have been cleared.

Jeffery Cantwell and Robert Rodriguez acted properly in the Feb. 16 shooting of Randy Patton and the accidental shooting of a bystander, Judy Williams, according to a press release from the First Judicial Circuit State Attorney officer.

The deputies were sent to the Days Inn after the Nashville Metro Police Department contacted them and said Patton had sent text messages to family members that showed him holding a semi-automatic handgun. Patton said in the text messages that he was going to kill himself, according to the investigative summary.

They found his car backed into a space at the hotel and approached the nearest room. When Patton and a female left the room, they told him to put his hands above his head and turn around. He initially complied, and then reached behind him and pulled out the gun, which he pointed at the deputies, the report said.

Both deputies fired their weapons striking Patton multiple times.

During the gunfire, a woman came out from a room four doors down from where Patton was standing. She was accidentally struck in the calf by one of the rounds, the report.

After deputies secured Patton's weapon, they discovered it was a BB/pellet gun.

The incident was captured on the deputies' body cameras.

Both Patton and Williams were treated and survived their injuries.

The State Attorney's office ruled that the deputies were justified in using deadly force because they had reason to believe they were in danger and that others were in danger.

The release also said it was Patton's intention to have the deputies shoot him.