Militants killed as three-day Indian Kashmir gunbattle ends