Candidate ends campaign after Twitter comments on ISIS