While IDF sources deny that there was an ambush, Hamas claims that it was an ambush operation.
The Arabic media is calling it "Operation Luring Idiots." Which makes it appear that the goal was indeed to kidnap Israeli soldiers.

Buy EoZ's books!
PROTOCOLS: EXPOSING MODERN ANTISEMITISM
If you want real peace, don't insist on a divided Jerusalem, @USAmbIsrael
The Apartheid charge, the Abraham Accords and the "right side of history"
With Palestinians, there is no need to exaggerate: they really support murdering random Jews
Great news for Yom HaShoah! There are no antisemites!