GAZA CITY — Chanting "revenge" and flanked by masked gunmen in camouflage, thousands of mourners in the Gaza Strip on Monday buried seven Palestinian militants killed in an Israeli incursion as the ruling Hamas group launched a feverish security sweep across the territory.
Hamas said Israeli undercover forces entered the territory in a civilian vehicle late Sunday and exchanged fire with Hamas gunmen. The clashes killed an Israeli lieutenant colonel and prompted Israeli airstrikes and a salvo of rocket fire from Gaza toward Israel.
It was not clear if the burst of violence, which appeared to have subsided early Monday, would derail those arrangements.
Israeli Prime Minister Benjamin Netanyahu cut short a visit to Paris because of the flare-up, and he returned to Israel on Monday for consultations with top security officials.
In Gaza, Hamas authorities beefed up security measures after the incident, deploying checkpoints all over the territory. The group also canceled a weekly beach protest in northwestern Gaza along the border with Israel. The organizers said Monday's protest was postponed "due to the ongoing security situation."
Hamas leader Ismail Haniyeh led a funeral for four militants as masked gunmen in uniforms carried the coffins, wrapped in the flag of Hamas' armed wing, and mourners chanted "revenge."
The Hamas military wing, Izzedine al-Qassam, said that in Sunday's incursion, Israeli undercover forces drove about 3 kilometers (2 miles) into southeastern Gaza and shot and killed Nour el-Deen Baraka, a mid-level commander in charge of a sensitive area in the southern Gaza Strip town of Khan Younis. Qassam members discovered the car and chased it, prompting Israeli airstrikes that killed several people, the group said.
The empty vehicle apparently used by the Israeli force was reduced to a charred chassis after aircraft fired several missiles at it, leaving a gaping crater in the ground.
The Israeli military said there had been an exchange of fire during an operation in Gaza, with troops withdrawing from the territory with the help of aircraft. It said that militants then launched 17 rockets from Gaza toward Israeli communities, where school and train service was cancelled in response, and that it had reinforced troops and its aerial defense system along the border following the flare-up.
The military provided few details about the reason for the raid. The Israeli military chief, Lt. Gen. Gadi Eisenkot, said a "special force" carried out "a very meaningful operation to Israel's security," without elaborating.
Israeli military spokesman Lt. Col. Jonathan Conricus said the operation was "not intended to kill or abduct terrorists but to strengthen Israeli security." He said the force faced a "very complex battle" and was able to "ex-filtrate in its entirety."
Netanyahu returned to Israel on Monday morning, cutting short a trip to Paris where he was set to meet French President Emmanuel Macron after having participated in ceremonies marking 100 years since the end of World War I.
In a tweet after his arrival back home, Netanyahu praised the slain officer, whose identity was being kept confidential for security reasons, and said "our forces acted courageously." The officer's funeral was being held Monday.
The overnight violence came after several months of confrontations along the Israel-Gaza perimeter fence. Since late March, Hamas has been leading mass marches, with turnout driven by growing despair in Gaza, to try to break the border blockade. The blockade has led to over 50 percent unemployment and chronic power outages, and prevents the vast majority of Gazans from traveling.
More than 170 demonstrators, many unarmed, have been killed by Israeli army fire in the confrontations, in which many of the participants threw stones, burned tires or hurled grenades toward Israeli forces.
Last week, Israel allowed Qatar to deliver $15 million in aid to Gaza's cash-strapped Hamas rulers. Hamas responded by lowering the intensity of the border protest last Friday.