Gabriel Moreno and Nambo were being held in the Wake County jail under $2 million bonds, while the other two were being held under $1 million bonds.
All four were ordered to be kept apart in jail and are prohibited from having any outside contact, meaning no visitors, mail, or phone calls.
The deputy, who isn't being identified to protect his work in undercover operations and for his family's safety, suffered broken ribs, a broken nose, and a back injury.
He was at the Panther Branch Community Center in Garner for a birthday party on Saturday when, according to investigators, Gabriel Moreno asked to speak to him outside. The other three men were hiding behind parked cars outside, and when the deputy came out, they attacked him, Harrison said. "They were saying, 'You're a cop. You're a pig, [as they attacked him],'" Wake County Sheriff Donnie Harrison told
WRAL
.
Investigators are trying to determine how the men knew the deputy was an officer. Three of them have criminal records, and officials say they are gang members.