The attack was weeks in the making against Israel’s recent targeted killings, mounting concern of regional escalation.