They were firing on Islamic State terrorists.
Islamic State terrorists kill at least 200 people in attack on Egyptian mosque
There may have been Egyptians among them. There may not have been. When you find a report stating the nationalities, come back and discuss it. In the meantime, yours is just speculation. Nowt wrong with that, but at least accept that's what it is.