Occupying forces are not civilians, that being said October 7th was primarily directed at the IDF. That Israel has mandatory conscription and deliberately inhabits stolen Palestinian land doesn't make the victims civilian. That's not even touching on the large number of people in Israel killed by the IDF under the Hannibal Directive. Deaths incorrectly attributed to Hamas:
https://en.wikipedia.org/wiki/Hannibal_Directive#Claimed_use...