UPDATE: Day 3 updates here: Gaza on the brink, after rocket fire kills one, wounds two in Israeli town; security cabinet convenes 

The problematic operation conducted by Israeli special forces deep in the Gaza Strip Sunday night has brought Israel and Hamas once again to the brink of war. As in previous rounds of escalation, Hamas’ fierce and broad response to the incident surprised Israel somewhat and contradicted signals sent by the Hamas leadership of a strategic desire for calm.

In the confrontation between the Israeli unit and Hamas militants east of Khan Yunis, in the southern Gaza Strip, one Israeli career officer was killed and a reserve officer was wounded. Seven Palestinians were killed. Hamas’ response came Monday afternoon in the form of a massive rocket barrage on the Negev and anti-tank fire on an Israeli bus that seriously injured one Israeli. In Ashkelon, a man was killed after a building was hit by a rocket.

Israel responded with a broad aerial attack on Hamas and Islamic Jihad targets. Even so, Egypt and other members of the international community were trying to mediate between the sides so as to avoid a war.

>> Opinion: War must never be inevitable, even between Israel and Hamas

The immediate question posed by the special forces operation Sunday is, why now? The operation took place in the midst of prolonged efforts to reach a long-term cease-fire in the Gaza Strip, while Prime Minister Benjamin Netanyahu was at an important diplomatic conference in France and only a few hours after he, in a long and persuasive speech at a press conference, explained why he thought every effort should be made to reach an agreement in the Strip and avoid war.

The initial Palestinian reports claimed the Israeli operation was an attempt to assassinate or to abduct a senior commander in Hamas’ military wing. Israel’s official response was delayed for many hours, but on Monday morning the picture gradually became clearer: It was not a liquidation attempt, but rather a special forces operation. It is doubtful whether taking out a Hamas battalion commander could justify a return to the policy of assassinations. In any event, if this was want Israel wanted to do, there are enough ways to do it without putting a ground force at risk in the heart of the Gaza Strip.

Netanyahu has been seemingly too invested in efforts to reach a deal with Hamas to approve such an operation. The Israel Defense Forces is not providing many details, but the operation appears to have been an intelligence-gathering maneuver, possibly connected to Hamas’ military infrastructure (the tunnel network or its weapons development system). In the recent years of the interwar period, Israel has been exploiting the chaos in the Arab world to conduct many similar cross-border operations. The vast majority of these maneuvers are kept secret.

The discovery of the fighters was an operational hitch that will require an in-depth investigation within the military. Was there something about the force’s conduct, or in the preparations for the operation, that revealed the fighters’ identity to Hamas, even though according to reports they were dressed like Arabs? Still, the fact that the operation ended with only killed and one wounded, and that the other members of the unit were rescued without anyone else being injured or — no less important — abducted, is admirable. It’s clear that a lot of resourcefulness and coolheadedness was needed to extract the force from a location three kilometers into built-up enemy territory.

The information about the operation that Haaretz was able to obtain indicates that the fighters from an elite unit were identified by a Hamas security force in the village of Abasan, in an agricultural area on the eastern outskirts of Khan Yunis. IDF Spokesman Brig. Gen. Ronen Manelis said the force had been in the midst of a “prolonged activity.”

The commander of the special forces unit, who has been identified only as Lt. Col. “M.,” was killed in the initial exchange of fire. His next-in-command, a captain in the reserves, suffered gunfire injuries but managed to lead the rest of the fighters out until they met the rescue forces.

Israeli forces in the area returned fire, injuring a number of Hamas militants. The forces withdrew under air cover, which attacked many targets in the area. Palestinian sources claimed the soldiers left the Gaza Strip by helicopter and that the IDF bombed the vehicles they had left behind. There were pictures and videos from the Strip off two burned vehicles.

The wounded officer was hit by a bullet that penetrated his lower back and hit his groin, near a major artery. It was difficult to bandage him in the field and he lost a lot of blood, but the quick evacuation helped save him. He was taken to Soroka Medical Center in Be’er Sheva, where he underwent surgery. His condition was upgraded to moderate. He was conscious and able to speak with members of his family.

The IDF breathed a sigh of relief at the end of Sunday night for two reasons: the fact that the wounded man’s life was saved and that there were no more casualties. A bigger mess-up, with lots of casualties or an abduction, would be considered a strategic event that would lead to a major escalation. Israel has already been dragged into such a situation in the past, when within a month in the summer of 2006, Gilad Shalit was abducted and then reservists were kidnapped in the north, leading to the Second Lebanon War. The kidnapping of a fighter in an elite unit would have exacerbated the consequences, given the intelligence risks involved.

Security sources said Monday that the rescue of the force was “hair-raising” and that only the courage of the fighters and the rescue squad prevented additional casualties. No less fascinating are the identities of the dead and wounded officers, which, unusually, remain classified by the censor. When one combines the details of the incident with the personal backgrounds of the two, one gets a scenario that television executives would reject as being too extreme and unrealistic.

As usual in these parts, the incident led to ugly and aggressive political debates on the social networks. Politicians, journalists and ordinary tweeters clashed with each other, trading accusations regarding the government’s responsibility for the failed operation, the opposition’s disloyalty, and the manner in which the incident casts light on the controversy over the wording of the so-called nation-state law. Michal Kasten-Keidar, whose husband, Lt. Col. Dolev Keidar, was killed in Operation Protective Edge in the Gaza Strip in 2014, rightly commented that the death of Lt. Col. M. belongs to his family, not to the politicians.

Also as usual, ridiculous theories abounded in cyberspace. Perhaps it must be clarified that not everything that happens here is connected to the Netanyahu investigations. Such operations are planned long in advance. They were not intended to ignite a war, nor to divert attention from the prime minister’s tense appearance when he was asked Sunday about the submarine affair.

Former Prime Minister Ehud Barak criticized Netanyahu’s absence from the country during such a sensitive operation. But as Barak, who has commanded hundreds of such operations, knows very well, Netanyahu is part of the round of preliminary approvals required for operations, but he cannot be confined to Israel every time a special operation takes place. This does not absolve Netanyahu of another matter: the contempt he showed for the role of acting prime minister by appointing Culture and Sports Minister Miri Regev to replace him while abroad.

There’s direct line between the appointment of the No. 1 sycophant to the prestigious temporary position and the dispatching of the No. 2 sycophant as the government’s representative to the funeral of Lt. Col M. in the north. The very presence of Communications Minister Ayoub Kara made many of the mourners’ blood boil. It was a good thing Education Minister Naftali Bennett also came to eulogize the officer.

In the meantime, another dispute broke over the censorship’s insistence on keeping the identities of the dead and injured officers secret. The IDF has done something similar only with regard to publishing the picture of an officer in the elite Sayeret Matkal special operations force, Lt. Col. Emmanuel Moreno, who was killed in an operation in Lebanon a week after the end of the Second Lebanon War. But the sweeping prohibition is irrelevant, a case of shutting the barn door long after the horses have fled: The name, picture and personal details of the deceased were shared on social media, including in the Gaza Strip.

Details about the wounded reservist were also shared, generating understandable emotion. It was clear by early Monday morning that the effort to protect this information had failed. It would have been better for the defense establishment to focus on keeping secret what is really important and what can actually be kept from the Israeli public, especially when the enemy already has the information.