This article suggests there were Hamas divers involved, as well as troops in boats. Regardless, given the circumstances, I wouldn't be taking any chances by trying to take any of those fanatics in the water prisoner...
New footage shows harbor security unit foiling Hamas naval infiltration on October 7
The new video showed that after Hamas speedboats were sunk by Dvora-class patrol boats of the 916th Patrol Squadron, the Snapir sailors on small Defender-class boats opened fire and used depth charges against the surviving terrorists, as well as Hamas divers.
The IDF said the attackers attempted to swim toward the Israeli coast.
“Snapir fighters opened fire on the terrorists, amid a naval pursuit. The fighters thwarted a number of terrorists at sea, and from there they continued to thwart terrorists when they reached the coastline,” the IDF said.
Snapir is a protection force and harbor security unit that is part of the patrol squadrons stationed at the Navy’s bases in Ashdod, Haifa and Eilat.
The IDF said that the
Navy killed dozens of Palestinian terrorists on speedboats and other vessels during the assault last weekend.
Snapir sailors on Defender-class boats kill terrorists trying to reach Israel's shore during assault
www.timesofisrael.com