A former police officer was among three Islamist militants killed in a gunbattle with Indian troops in the disputed region of Kashmir on Monday, security officials said.