Power restored to N.C. county affected by shooting