ROMEOVILLE, Ill. — Police have arrested the gunman who shot and wounded an officer in Romeoville after an hours-long manhunt.

The shooting happened around 12:15 a.m. Thursday near the intersection of Sierra Trail and Summerfield Drive. Police said officers were investigating a stolen vehicle and approached the suspect, who then fled on foot.

A foot chase ensued and there was an exchange of gunfire.

One officer was shot in the shoulder and was transported to Loyola Hospital. He is expected to recover.

Authorities conducted an hours-long manhunt for the gunman, advising residents to stay inside their homes. The suspect was caught hiding in shrubbery and taken into custody around 5:45 a.m. Thursday.

Police said the suspect in custody has a lengthy criminal record and was out on parole at the time of the shooting.