GAZA CITY, Gaza Strip —An explosion targeted an Israeli military vehicle on the border with Gaza on Saturday and Israeli troops fired into the Palestinian territory, killing four civilians and wounding at least 25, Gaza officials and witnesses said.

Ashraf al-Kadera, a Gaza health ministry spokesman, said all four killed were civilians between the ages of 16 and 18 and that among the wounded were children. Witnesses said that following the large explosion, Israel retaliated with tank and machine gun fire toward residential areas at the al-Muntar hill in the central part of the territory, hitting people who were returning from a funeral east of Gaza City.

The Israeli military said they were investigating the incident and had no further comment. But military officials speaking anonymously because they were not permitted to discuss the incidents said Gaza militants fired an anti-tank missile toward an Israeli jeep that was patrolling along the border.

Gaza militants often fire rockets from the Israel-Gaza border area toward nearby Israeli communities and low-level clashes with the Israeli military are common.

In a text message to reporters, Hamas spokesman Fawzi Barhoum threatened to respond.

“Targeting civilians is a dangerous escalation that cannot be tolerated. The resistance has the full right to respond to the Israeli crimes,” he said.

Rami Harra said his 17-year-old brother Muhammad Harra was killed in the strike.