The Egyptian Army is sick of taking it on the chin for the spoiled brat Palestinians. There is little sympathy for the Palestinians among a wide swath of the Egyptian population, who lives and livelihoods have been turned upside down while the Palestinians have been the treated like pampered pets with Western largess.
As has been presented in the news articles posted, and which is not speculative, this has been directed at Hamas and the Muslim Brotherhood. In fact Egypt BLAMES Hamas for killing Palestinians ... and just that alone indicates that they are distinguishing between the Palestinian civilians and Hamas.