A Wake County, NC, sheriff's deputy underwent surgery and was in stable condition Wednesday after being shot.

Sgt. Ronald Waller, a 20-year-veteran of the sheriff's office, was serving an eviction notice at an apartment complex when he was shot twice in the hip.

Radio traffic on Broadcastify, a platform that records law enforcement communication, described the shooter as having an AK-47.

Waller was rescued by Raleigh police officers, put into a patrol vehicle which was met by an ambulance and then taken to WakeMed, WRAL reports.

Sheriff Gerald Baker praised the emergency response to Waller's shooting, getting choked up as he updated the media on Waller's condition.

"I can’t say enough about Raleigh Police Department, their assistance. That’s how it goes when these things happen. We all come together," Baker said.

Police arrested Eddie Dewain Craig, 32. He is charged with assault with a dangerous weapon with intent to kill, attempted murder, assault on a law enforcement officer with a firearm and assault with a dangerous weapon with intent to kill inflicting serious injury.