It was thought to be the largest operation by the Turkish authorities against the militant group and came five weeks after the Islamic State claimed links to a rampage by a gunman who killed dozens of people at a nightclub in Istanbul as revelers welcomed 2017.