Authorities say an off-duty deputy shot a man after a confrontation with a couple that was having sex in the pool of a Boca Raton housing complex, according to NBC affiliate WPTV.

The deputy, who lives in Reflections of Boca del Mar at 5500 Pacific Blvd, said he found the couple engaging in sexual activity, WPTV reported. He told the couple that he is a deputy and asked them to leave the premises.

Although they left reluctantly, the couple returned a short time later and the man approached the deputy, who was sitting in a lounge chair, according to WPTV.

The man was reportedly hovering over the deputy in a threatening manner, leading to a confrontation in which the man attempted to strike the deputy and the deputy opened fire.

The man is now in critical condition at Delray Medical Center, according to WPTV.

Detectives are investigating the incident, and the unnamed deputy has been placed on administrative leave, which is standard protocol.