A Pentagon spokesman confirmed that US special forces were carrying out a counter-terrorism mission in Syria.