An armed suspect accused of taking as many as eight hostages at a credit union on the campus of the University of Alabama was under arrest Tuesday, police announced, as a standoff that gripped Tuscaloosa for hours came to an end.

SUSPECTED COP-KILLER ON THE LOOSE WANTED TO BE ON 'AMERICA'S MOST WANTED'

SWAT team officers were able to storm the Alabama Credit Union and "take him down," Police Chief Steve Anderson told reporters. The unnamed suspect apparently wanted to rob the place, Anderson added.

It all started when a worker noticed somebody "irregular" inside the building and called the cops, Univ. of Alabama Asst. Police Chief Aaron Fowler said. It happened around 8:30 a.m., while the credit union was still closed.

NJ'S BLUE LINE TRIBUTE TO COPS VIOLATES ROAD SAFETY, OFFICIALS WARN

The credit union's president, Steve Swofford, told Fox 6 his employees were safe.

The university had sent out a campus-wide alert warning people to stay away. The credit union was in a busy area of the city, with several restaurants and doctors' offices also in surrounding blocks.

#BREAKING: New pictures coming in from the scene of hostage situation at Alabama Credit Union in Tuscaloosa. pic.twitter.com/tw4a20QxpF — WBRC FOX6 News (@WBRCnews) January 10, 2017

Video and photos from the area showed police in military-style vehicles and tactical gear with guns drawn, and a police helicopter overhead. Officers were working quickly to evacuate nearby businesses.

"My thoughts & prayers are with these officers, the hostages, and their families," Mayor Walt Maddox tweeted.

The campus had been largely quiet on Tuesday. Classes were set to get back underway on Wednesday after the winter break.

Click for more from Fox 6.

The Associated Press contributed to this report.