An armed suspect who allegedly held a woman hostage at a credit union branch in Illinois surrendered Friday night following a six-hour standoff with police, according to reports.

The situation in Rockford, about 90 minutes northwest of Chicago, started Friday afternoon when the suspect entered the Heritage Credit Union and demanded that everyone leave, authorities said. The woman, who worked at the bank, was unable to get out and the suspect barricaded the two of them inside while negotiators tried to deescalate the standoff without injuries, WREX-TV of Rockford reported.

MISSISSIPPI INMATE BECOMES FIFTH TO BE KILLED INSIDE THE STATE'S PRISONS THIS WEEK

Personnel from the FBI made contact with the suspect during the standoff while a SWAT team held a perimeter around the credit union.

“It is unfortunate when situations like this occur," Special Agent Emmerson Buie Jr. said, according to the Chicago Tribune. "However, it is great that the situation was resolved without anyone being seriously injured.”

There were no serious injuries, the Tribune reported.

“The FBI negotiators worked seamlessly with the Rockford negotiators and I could not give them enough credit," Rockford police Chief Dan O’Shea said. "The FBI really stepped up to help us out.”

The suspect was taken into custody but it was not clear what charges he’ll face, WREX reported.

CLICK HERE TO GET THE FOX NEWS APP

The suspect had existing warrants in another county, the Tribune reported.