Officials say the militants opened fire after Indian troops ordered them to surrender .