Two males quickly got out of the Subaru, Durham said. One was armed with a rifle and fired multiple rounds at an officer who had been pursuing him, striking his cruiser, authorities said.

The officer immediately returned fire, striking the suspect, Durham said.

Responding officers applied a tourniquet to the gunman’s leg until rescuers arrived and took him to a hospital, Durham said. The man is expected to survive. Police said they recovered an assault-style weapon near the vehicle.

Shelia Pate was in her home when she heard sirens outside near the intersection of Fourth Avenue and Pollock Street. She said she looked out from a bedroom window and saw a police officer crouched behind a vehicle.

“I seen him get on the ground,” she said.

“When they started shooting, I got out of the window,” Pate said. “I just got on the floor and started crawling.”

The second male who had been in the Subaru fled into a wooded area toward the Henrico County line, Durham said.

Police launched a search for him with help from Henrico County authorities. He was captured about 9:25 a.m. in the woods.