Israel launched airstrikes on Gaza after it accused Palestinian militants of attacking its forces across cease-fire lines.