The episode pointed to the risk of unintended clashes among the myriad forces operating on a fluid battlefield in Syria, as the American command looks toward the fight to retake Raqqa, the Islamic State’s de facto capital in the country.