Three militants force their way into an army camp in Indian-administered Kashmir and ensued in a gun battle, the army says.