A Florida man was arrested last weekend for repeatedly assaulting a deputy who asked him to exit a no-swimming zone at a resort in Key Largo, police say.

Yanser Robaina, 40, of Homestead, had to be subdued with a stun gun after resisting arrest, the Monroe County Sheriff's Office said. He is accused of causing more than $1,000 in damage by kicking a patrol car door, headbutting a deputy and spitting in the same officer's mouth.

Two officers initially responded to the scene, which occurred at Gilbert's Resort, after being contacted by security guards shortly around 3:30 p.m. They reported children had been jumping from the dock into the water. The group of kids stopped jumping into the water when asked by deputies.

But the situation escalated when deputies spotted two men, including Robaina, swimming in a zone that is restricted as boats pass through the area. One of the men claimed to be looking for a pair of sunglasses—but became increasingly irate as he was asked to leave the water.

According to the local sheriff's office, Robaina cursed at one deputy. After eventually getting out he threatened to take legal action, allegedly saying: "I am going to sue you guys and you're going to end up on the news." He refused to provide his personal information when taken into custody. Police confirmed that the second individual was not charged in relation to the incident.

Yanser Robaina, 40, of Homestead, had to be subdued with a stun gun for resisting arrest, according to the Monroe County Sheriff’s Office, Florida Keys. Monroe County Sheriff’s Office

Three more officers arrived on the scene, but Robaina allegedly refused to back down. He kicked the patrol car door with such force that it would no longer close properly, WKMG reported.

One deputy used his stun gun after losing grip on the suspect while he was being placed into leg restraints, police said. Robaina briefly calmed down, before again lashing out by kicking one of the officers who arrived as backup. He was hit with the stun gun for a second time.

Robaina claimed to have high blood pressure but declined further medical attention, police said. Inmate records show he was taken to jail alongside a second man, Freddy Ruiz, 43.

Ruiz came to the officers' attention after resort security reported he was with Robaina and had been asked to leave the property. Security guards said he dropped a small plastic bag on the beach as he approached deputies. The bag, containing a small amount of white powder, tested positive for cocaine and marijuana.

Police said Ruiz declined to speak to the sheriff's deputies when questioned about the package of drugs. The suspect was allegedly seen on video camera footage discarding the bag on the beach.

According to police records since published online, Robaina was charged with battery on a law enforcement officer, property damage of $1,000 or more, resisting arrest with violence and resisting arrest without violence. Ruiz, of Miami, was charged with cocaine possession.