1) In your logic, this would mean, that Hamas has also the right to kill civilian Israelis because they voted for the Nazi government of Nethanjahu.
2) You self mentioned it: as long as military assets of Hamas are attacted, then this is the right
of Israel’s self-defence.
Israel has from the beginning attaced civil infrastrucure of the Palestinian people what has killed so far more than 8800 persons. This is called genocide.
3) You should better verify your information concerning the beheadings and burning of babies. This has been verified as fake news.