The deputy mayor of Mendham Township, New Jersey has resigned after comparing immigrants to rabid raccoons on social media.