(CNN) A man was arrested Friday after he held a woman hostage for more than six hours inside a Rockford, Illinois, credit union, police said.

"At the end, he did come out of the building, willingly while speaking with crisis negotiators," Rockford Police Chief Dan O'Shea told reporters Friday night.

The suspect, who has not been identified, was in custody and is expected to face charges in the incident.

The incident began when police responded to reports of an armed robbery about 2:30 p.m. (3:30 p.m. ET) at the Heritage Credit Union on East State Street.

O'Shea said the suspect demanded that people leave after he entered the building but not everyone was able to get out, CNN affiliate WREX reported.

Read More