Thousands of people in Indian-controlled Kashmir joined a funeral procession Monday for two teenage rebels who were killed over the weekend in a long gunbattle with Indian troops in the disputed region.

Villagers carried the teens' bodies to a "martyr's graveyard" in the northern town of Hajin. They chanted slogans eulogizing anti-India militants and demanding an end to Indian rule over the Himalayan region.

Thousands took part in funeral prayers for the two boys that were held at least three times, to accommodate the large number of people arriving from different places in the area.

According to police, the two friends, 14-year-old Mudasir Rashid Parray and 17-year-old Saqib Bilal Sheikh, joined the rebel ranks in late August. Police said Parray was the youngest rebel killed in the three decades of armed conflict in Kashmir, a territory divided between India and Pakistan but claimed by both in its entirety.

"The two remained friends in life and in death," said Azhar Ahmed, a local resident. "We've lost two lively boys in our neighborhood. Everyone's eyes are moist. They lived and died for the same cause."

The two teens and a militant commander were killed Sunday in fighting with government forces that lasted nearly 18 hours, triggering anti-India protests and clashes in the region that left at least five people injured. At least two counterinsurgency police officers and a soldier were also wounded in the gunfight.

Police identified the slain insurgent commander as a Pakistani national who trained the two friends and recruited them into Lashkar-e-Taiba, a militant group New Delhi blames for a 2008 attack that left 166 people dead in India's commercial capital of Mumbai.

Shortly after Monday's burial, hundreds of people, mainly youths, chanted slogans including "Go India, go back" and "We want freedom" as they hit streets in Hajin and clashed with government troops.

Police and paramilitary soldiers fired shotgun pellets and tear gas to combat stone-throwing protesters. No one was immediately reported injured in the clashes.

Most Kashmiris support rebel demands that the territory be united either under Pakistani rule or as an independent country, while also participating in civilian street protests against Indian control. In recent years, mainly young Kashmiris have displayed open solidarity with the rebels and sought to protect them by engaging troops in street clashes during military operations.

Rebels have been fighting Indian control since 1989. India accuses Pakistan of arming and training the rebels, a charge Pakistan denies.

Nearly 70,000 people have been killed in the uprising and the ensuing Indian military crackdown.