It happened Tuesday at the Oaks Apartments on Water Oaks Drive off Louisburg Road.
The Wake County Sheriff's Office said deputies were serving an eviction order and the tenant, identified as 52-year-old Jason Thomas Lundwall, refused to leave.
WATCH | Deputy shoots man after standoff that started over eviction order
Tenant shot by deputy after refusing eviction seriously injured
Nearby apartments were evacuated as a precaution. Officers surrounded the apartment complex and worked for nearly seven hours to get the man to come out.
Around 5:30 p.m. deputies went inside the apartment to enforce the eviction order and remove the man. During the attempt to remove him, Deputy Michael Reitmann discharged his gun wounding Lundwall.
Lundwall was taken to WakeMed with serious injuries.
Investigators have not revealed why the deputy fired his gun. Reitmann is on administrative leave, which is standard policy in such cases.
The investigation is being led by the State Bureau of Investigation.
WATCH | CHOPPER 11: Wake County deputies evacuate apartment when tenant refuses eviction
CHOPPER 11: Wake County deputies evacuate apartment when tenant refuses eviction