Tom Shaheen, who has headed the North Carolina Education Lottery since its inception four years ago, has resigned to take a position with a lottery vendor.