Indian security forces are battling an armed attack on a police station near the Pakistan border in which at least five people have been killed.