BEDFORD-STUYVESANT, Brooklyn (PIX11) — An NYPD officer was shot in the right foot and a suspect was shot twice in the leg in Brooklyn Wednesday morning, according to the NYPD.

Police were responding to a domestic call at a home on Gates Avenue, near Franklin Avenue in Bedford-Stuyvesant, after a woman called 911 about a man breaking her walls just after 8:35 a.m., police said. The officers arrived at about 9 a.m. and were trying to arrest Raheem Joye, 41, for criminal mischief after he allegedly damaged the walls in the home, authorities said. While putting him in handcuffs, the suspect struggled and a gun went off, hitting the officer in the foot, police said.

Joye then fled the scene with a 9mm gun in his hand and ran several blocks before additional officers confronted him on Monroe Street. A shootout ensued and the suspect was struck twice in the leg, officials said. Joye allegedly fired two shots during the exchange but did not hit any other officers, police said.

The cop who was shot, a seven-year veteran of the NYPD, was taken to the hospital in stable condition. He was expected to be released Wednesday.

This was the 10th officer to be shot in nine separate incidents this year, according to NYPD Commissioner Keechant Sewell. The first incident was on New Year’s Day.

“Here we are again as this year comes to a close,” Sewell said.

Joye was taken to the hospital for treatment for his gunshot wounds, police said. Joye allegedly had an illegal handgun that was recovered at the scene, officials said. He had 17 prior arrests in Georgia.

AIR11 was over the scene of the shooting Wednesday morning. Watch the video player below.