Clashes with IS in Iraq kill 23 troops, allied fighters