Police were in a standoff with him at the Wells Fargo bank for more than 8 hours.
The suspect has been arrested and all five hostages are safe.
Five bank workers were held hostage, but released safely.
The standoff ended Thursday night when the suspect shot himself.
The 31-year-old was allegedly holding a woman at gunpoint.
The female victim wasn't seriously injured, police said.