Israel launched airstrikes on Gaza after accusing Palestinian militants of attacking its forces across ceasefire lines.