The editor-in-chief of The Atlantic magazine announced Thursday that the publication was “parting ways” with conservative writer Kevin Williamson two weeks to the day after he was hired.