Prosecutor: N.C. officer acted lawfully in black man's killing