Both attacks, widely believed to be carried out by Israel, have hiked fears that the two sides’ simmering conflict could escalate into all-out war.