A Donald Trump campaign official has resigned after making controversial comments about African Americans.