Corey Lewandowski, who served a brief stint as a commentator, has resigned from CNN.