One suspect was taken into custody late Wednesday evening. The second suspect was found early Thursday morning hiding in a shed off Wendy Lane, according to police.
The officer was rushed to WakeMed in unknown condition. Raleigh Police Department tweeted at 2:30 a.m. that the officer was out of surgery and in need of prayers.
"We are praying for the best outcome. As you can imagine, this is a very difficult time for the officer, the family, and the Raleigh Police Department. We appreciate all the thoughts, prayers, and well-wishes," RPD said in a news release.
The shooting happened Wednesday evening around 8:30 at an apartment complex in southwest Raleigh.
I-440 at Western Boulevard was shut down as part of the investigation. Traffic was moving slowly on I-440 as of 9:30 p.m.
Law enforcement officers used flashlights to search nearby woods.
Shortly before 10 p.m., an ABC11 crew at the scene heard flash bangs from in the neighborhood behind us. It was unclear exactly where officers were searching but they were concentrating on an area about a half mile from the shooting scene.
Area residents were being told to stay inside.
Police requested the assistance of a State Highway Patrol helicopter in the search.
RPD said numerous law enforcement agencies were assisting in the investigation. By 1 a.m., police had their suspects and the scene began to clear.
Raleigh Police ask anyone who knows anything about this crime to contact RPD immediately.
See breaking news? Tell us about it here.