JERUSALEM - Two Palestinian militants infiltrated Israel from the Gaza Strip early Saturday, attacking an Israeli military position before soldiers tracked them down and killed them, Israeli and Palestinian officials said.

The incident raised the death toll to seven Palestinians in less than 24 hours of Israeli-Palestinian violence. Among the dead was an 11-year-old boy who was killed while visiting relatives in a West Bank village.

Militants frequently attack the Israeli border, but Saturday's infiltration was one of the few times they have managed to slip by the heavily fortified fence enclosing Gaza.

Maj. Tal Lev-Ram, an Israeli army spokesman, said there was "an intention to carry out a large attack in Israeli territory." He said the militants were heavily armed "head to toe" with grenades and automatic weapons, and were headed toward communities in southern Israel when they were stopped.

Lev-Ram said the militants entered Israel near the Erez border crossing, attacked an army post and continued into Israel. Ground forces were dispatched and killed the infiltrators after a brief chase. He said the militants were about 700 yards inside Israeli territory when they were shot.

In Gaza, three militant groups -- the Popular Resistance Committees, the Democratic Front for the Liberation of Palestine and the Al Aqsa Martyrs' Brigades -- claimed responsibility for the attack. In a joint statement, they said three gunmen participated in the attack. Two were killed after a "long battle," and the fate of the third was unknown, the statement said.

Lev-Ram said the claim of a third militant entering Israel was wrong, and if there were other attackers, they probably turned around and stayed in Gaza.

Still, the army and police set up checkpoints and conducted searches as precautionary measures. By early afternoon, the checkpoints had been removed, the army said.

The volatile border with Gaza has grown increasingly tense since the Hamas militant group seized control of the coastal strip in June. Israel considers Hamas a terrorist group and has stepped up its activities since the Gaza takeover, frequently launching incursions into Gaza to halt rocket attacks and to search for tunnels that can be used by militants.

The army also frequently thwarts attempted infiltrations, including one on Friday night in which two militants were killed after firing at Israeli soldiers on the Israeli side of the border. Troops entered Gaza late Friday and shot the gunmen after a brief chase, the army said.

There was no official word on the identities of the two militants, and Palestinian medical officials said they were still unable to retrieve the bodies early Saturday.

In the West Bank, meanwhile, Israeli forces opened fire at a car full of Palestinian gunmen in Jenin early Saturday, killing one militant and wounding at least two others, according to Israeli and Palestinian officials.

Palestinian security officials said the men belonged to Islamic Jihad, a radical group that has carried out dozens of attacks on Israelis. The officials said one member was killed and three others were wounded.

The Israeli army said special forces opened fire on the car after spotting three armed men inside the vehicle. It said one militant was killed and two others were wounded, and that soldiers uncovered two automatic weapons and ammunition.

A Palestinian witness, Abu Hassan, said he saw soldiers pursuing the militants. "The soldiers got out of their vehicle, shot the car quickly and fled," he said.

On Friday, an Israeli raid in search of militants in a West Bank village sparked a firefight that left two Palestinians dead, including an 11-year-old boy, Palestinian officials said.

Mahmoud Ibrahim Karnawi, 11, was shot after Israeli troops moved into Saida village in the northern West Bank, witnesses said. Relatives said the boy lived in Israel and was visiting relatives at the time.

They said the troops were trying to arrest his older half brother, a wanted Islamic Jihad militant. A gunfight erupted as they approached the family's home.

Neighbors said the boy was inside and hit in the crossfire. Hospital officials said an Islamic Jihad militant not related to the boy also was killed.

A member of the Israeli paramilitary border police was lightly wounded, the army said.