JACKSONVILLE (CBSMiami) – Florida beachgoers received quite a shock when something unexpected showed up in the water.

No, it wasn’t a shark, but it was just as dangerous.

READ MORE: BSO Clears Person Of Interest In Tamarac Burglary Where Thief Claimed To Be Deputy

Lifeguards and the Florida Fish and Wildlife Conservation Commission moved quickly after an alligator was spotted swimming just off Jacksonville Beach.

Swimmers were ordered out of the water as efforts were made to locate the gator.

READ MORE: 'We Got Our Man': Patrick McDowell, Wanted For Killing Florida Deputy, Captured

Eventually, the 3-foot alligator was captured by a lifeguard, who paddled out and placed it into a net.

Officials said the gator would be relocated.

MORE NEWS: Gov. DeSantis Sues Biden Administration Over Border Security, Signs 'Border Crisis' Executive Order

FWC says while its uncommon to find a gator on the beach, it’s not completely unheard of.