Israel's military has pledged on Friday to investigate the death of civilians in Gaza after attacks targeting the Islamic Jihad group killed 34 Palestinians.