Follow CBSMIAMI.COM: Facebook | Twitter

TITUSVILLE (CBSMiami/AP) — A Florida sheriff’s deputy helped stop a man who from Texas who said he wanted to “rape, kill, and cannibalize” a child.

READ MORE: Coral Springs Police: 3 Separate Crime Scenes Tied To One Suspect

Alexander Nathan Barter, 21, reportedly posted an online ad about trying “necrophilia and cannibalism and see how it feels to take a life.” Brevard County Sheriff Wayne Ivey said one of his deputies, who also works for U.S. Immigration and Customs Enforcement, saw it and offered Barter a child.

Alexander Nathan Barter (Source: Shelby Co. Sheriff’s Office)

READ MORE: Brightline Celebrates 3 Years Of Service As It Nears Orlando Extension Completion

Ivey said deputies then drove to Joaquin, a town of fewer than 1,000 people near the Texas-Louisiana line, and met with Barter.

Barter was arrested on charges including criminal attempt of capital murder and confessed before thanking the agents for “stopping him because he couldn’t stop himself.”

MORE NEWS: Ronald Acuña's 1st Game In Miami Since Knee Injury, Leads Braves Past Marlins 5-3

(© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)