GAZA CITY, Gaza Strip (AP) A Palestinian boy accidentally struck by a bullet when militants fired in the air during a funeral died of his injuries Wednesday, family members and witnesses said.

Palestinian health official Adham Abu Salmia initially said that 8-year-old Barka al-Mugrahbi died of wounds sustained in an Israeli airstrike on Monday.

Israel's military said it did not carry out a strike in the area then.

The boy's relatives and witnesses later said the boy was marching in a funeral procession for a Gaza militant when he was struck in the head by an errant bullet.

At the time, gunmen were firing in the air, they said.

On Tuesday, Israel and Gaza militants agreed to a truce after four days of cross-border fighting, though there have been sporadic violations. Not counting the boy, 25 Palestinians were killed in the violence.

Rocket and mortar fire from Gaza has persisted, and early Wednesday, Israel carried out a retaliatory airstrike.

Later Wednesday, a rocket was fired toward the southern Israeli city of Beersheba, police spokesman Micky Rosenfeld said. No one was hurt, and no damage was reported.

The attack was enough to prompt Beersheba and the coastal cities of Ashdod and Ashkelon, also in rocket range, to cancel Thursday school classes.