Two students were in custody Tuesday in connection with a shooting outside a North Carolina high school in which another student was injured, police said.