Brooksville, Florida -- Brooksville Police were able to get a man into police custody safely after a very scary incident at a bank Thursday afternoon in which he said he had a bomb in his backpack and intended to blow the bank up.

Detectives say Mark Riley walked into the SunTrust Bank on Jefferson Street around 12:37 p.m., approached a teller and asked to speak with security. When the teller asked why, Riley said he had an explosive device in his backpack and he was going to blow up the building killing everyone inside.

PHOTOS:Man threatens to blow up Brooksville SunTrust bank

Brooksville Police detectives arrived within minutes and confronted Riley who was holding the backpack. He refused detectives orders to put the bag down and in a quick, threatening manner reached into the bag as if to get a weapon. He was immediately tackled by detectives and taken into custody without incident.

The Citrus County Bomb Squad determined the backpack was only filled with clothes.

During an interrogation with officers, Riley reportedly told them his intention was to be killed by responding security or officers and that his actions during the incident were meant to provoke that.

Riley, 58, was charged with threat of a destructive device and resisting arrest.

Check out some ofour mostread stories from 2013:

#shortyellows:Florida quietly shortened yellow lights

Terrorism Warning:Memo says terrorists practicing dry-runs on Florida flights

Kittens shot:Officer shoots kittens in front of children

Courtroom apology:Woman apologizes for flipping off judge

Weird ice:Strange, giant circles appear on frozen pond

Controversial Club:College student organizes "White Student Union"

CFO Trouble:School administrative chief in trouble over her porn sex blog

Warning Shot Wife:Mother gets 20 years for firing warning shots at abusive husband

Science Arrest:Teen girl arrested over science project explosion

Wait, WHAT??Dog shoots man in the leg with a handgun

Popular photo galleries:

Faces of Meth:Devastating before and after photos of meth abusers

Trayvon Martin Shooting:Trayvon Martin crime scene photos and George Zimmerman injury photos

Hooters Winners:Winners of the 2013 Hooters swimsuit pageant

Rejected:Funny Florida license plates rejected by the DMV***warning graphic***

Deadly sinkhole:Home collapses, man dies in giant sinkhole

Popular Databases:

Florida Sex Offenders:Look up sex offenders in any Florida neighborhood here

Restaurant Inspections:Look up inspection reports for any Florida restaurant here