SRINAGAR, Kashmir — A woman was killed during anti-India protests in Kashmir on Tuesday after a gun battle that killed two rebels, the police and villagers said.

The fighting erupted after Indian troops cordoned off a village in the southern Shopian area overnight on a tip that militants were hiding in a house, the police said.

The trapped militants tried to escape while firing their guns, but soldiers fired back, leading to a prolonged clash.

As the fighting raged, hundreds of residents, mostly young men, entered the streets to support the rebels, chanting pro-militant slogans and demanding the end of Indian rule over Kashmir.