Believe me, the IDF didn't know. If the IDF likes to kill Palestinians they will do it. Afterwords the IDF will say they prefented a terror attack. In that case the Palestinians can kill also Jews as they can work together with the IDF.
Three homemade bombs in Egypt's Alexandria wound two (AP)
from the article: IDF: Gaza strike killed terrorist planning attack on Egypt border