A New Jersey man whose threats to kill himself caused the evacuation of a Florida hotel was taken into police custody after officers electrically shocked him while delivering a soda.

The Daytona Beach Police Department tweeted that the unidentified man was taken into custody after a standoff Saturday.

The Ocean Breeze Beach Club hotel was evacuated as a precautionary measure during the standoff.

Orlando television station WFTV said officers shocked the man with a Taser after he opened his door to get a soda he had requested.

UPDATE: Subject now in custody. Normal traffic flow in the area should resume shortly. A special thanks to @VolusiaBeach and @VolusiaSheriff EOD Squad for helping us handle this situation. https://t.co/fDvqU4PmJj — Daytona Beach Police (@DaytonaBchPD) September 21, 2019

Deputy Chief Jakari Young told the Daytona Beach News-Journal that witnesses saw the man holding something green. WFTV reports it was a dummy grenade.

Young says the man was David Allen from Atlantic City, New Jersey and has been staying at the hotel for two days.

“He was talking a lot, but it was very delusional, irrational [such as] he’s the messiah,” the deputy chief said.

Investigators say they finally arrested him because he asked for a soda. They bought one, placed it outside his room, then tased him when he came out. Police have cleared the scene. Workers and guests are now allowed back in. @WFTV #WFTV #breaking pic.twitter.com/FbyB9ePOfO — Megan Cruz (@MeganWFTV) September 21, 2019

Information from: Daytona Beach (Fla.) News-Journal, http://www.news-journalonline.com