It happened in the 5900 block of Stillcrest Way in the Village at Town Center apartments.
The victim was taken to WakeMed with what police said were not life-threatening injuries.
Police said it was not a drive-by shooting but were not clear on the relationship between the shooter and the victim
There is no information on a suspect.
Neighbors heard the gunshot but said they thought it was perhaps a loud backfire on a car muffler.
"Just knowing something like this can happen less than 100 feet away from you doesn't give you a lot of comfort," one resident told ABC11.
Raleigh police continued to investigate late into the afternoon.
How safe is your neighborhood? Check with the CrimeTracker tool