WASHINGTON—The U.S. military mistakenly killed 18 of its own allies in Syria in a misdirected airstrike meant to hit Islamic State fighters, Pentagon officials said Thursday.

Members of a Kurdish-Arab coalition allied with the U.S. were killed after providing the U.S. with the wrong coordinates for an enemy target during a battle with Islamic State fighters earlier this week, the military said.

The...