A New Jersey county sheriff has resigned after a recording surfaced in which he made disparaging comments about blacks and the state`s first Sikh attorney general.