YONKERS - A city police officer was shot in the jaw Monday night during a car stop that turned into a shootout with two suspects that one witness compared to the "wild, wild West."

The female officer was listed in serious but stable condition at Jacobi Medical Center in the Bronx, where she was taken following the shootout around 8 p.m., Yonkers Police Commissioner Charles Gardner said.

The officer was released from the hospital on Tuesday afternoon, a press release states.

Mayor Mike Spano identifed the officer as Kayla Maher. He said Tuesday that he had visited her in the hospital and called her "gutsy." Her mother is a retired NYPD sergeant, the mayor said.

Kayla Maher graduated from Yonkers' Lincoln High School and joined the department in 2015.

UPDATE:'Gutsy' Yonkers police officer recovering after 'Wild West' shootout

KAYLA MAHER:'A smile that you can see from 200 feet'

LINE OF DUTY:7 other Westchester cops who were shot

YONKERS: No-show pre-K kids will be dropped to make space

HOUSING:Indian Point housing market still strong despite uncertainty

"It could have been much worse," Gardner said Monday night during a news conference at Rumsey Road and Park Hill Avenue, not far from the scene. "Thank God the officer right now did not sustain a life-threatening injury. She was struck. She's in serious, but stable condition, but thank God it looks like she's gonna be OK."

Police on Tuesday said both suspects in the shooting are New Rochelle residents. Police would not release their names, saying charges were pending.

Luis Perez, who lives on Ridge Street close to the scene, said the shootout sounded like 35-40 shots in about 10 minutes.

"A lot of shooting," he said, comparing it to the "Wild, Wild West."

He said he was returning home and walking inside when he heard the first shots, which he thought were fireworks. Then he and his wife heard more shots.

"That's when I said, something is not right here," he said.

Perez said he walked outside to check it out and saw cops rushing up to the scene, including one who grabbed a shotgun from the trunk of his police car.

"Cops told me, 'Get back, get back,'" he said.

Perez said he's lived in the area more than 20 years and never saw something like this here.

"This is a very nice neighborhood," he said.

At Deli City in Yonkers, customer David Scott said his daughter went to St. Paul's Catholic School in Yonkers with Maher.

"She's a great girl," he said.

Ron Tomanelli, who knows the family, said Maher is a very nice woman.

"I wish her the best," he said

The shooting took place near Marshall and Ridge roads, and police said drivers should avoid the area today because the investigation is ongoing and has closed some roads in the neighborhood.

MAP: Yonkers police officer shot

Police said Marshall Road is closed, as well as Ridge Road between Marshall Road and Wendover Road, Ridge Road between Marshall Road and Madeline Parkway, Birch Road between Marshall Road and Wendover Road, and Madeline Parkway between Marshall Road and Latin Drive.

Police said they responded to the area at 8:02 p.m. Monday based on a resident's report of suspicious people near Marshall and Ridge roads, Gardner said.

Gardner said when the officers from the 3rd Precinct approached the car, at least one of the suspects used a handgun to fire several shots at the officers, hitting the female officer. Officers then returned fire at the suspects.

"She was struck in the chin," Gardner said, adding the bullet may have gone through her jaw. "Our hearts and prayers go out to the family."

Gardner said one of two men was shot and later underwent surgery at a local hospital. That suspect is in serious but stable condition, police said. The second man in the car was arrested.

Police said they recovered a gun at the scene. Gardner added on Monday night that the investigation remained in the early stages and he didn't have a lot of information.

After the shooting, the police set up a staging area near where the shooting occurred.

"It's chaotic," Yonkers police Lt. Arthur Lein said.

Sgt. Dean Politopoulos said the two men have not yet been charged.

“This is the beginning of the investigation,” he said. “We’re going to be here all night.”

The Associated Press, Journal News/lohud photographer Mark Vergari and staff writers Jonathan Bandler and Jordan Fenster contributed to this report.

Twitter: @lohudlegal