The deceased was identified as Kudrat Ali, 40, son of Omar Ali of Dariapur village in the upazila.
Md Rabiul Islam, Habiganj police superintendent, said tipped off that a gang of robbers was preparing for robbery in a bamboo cluster in the area, a team of police of Sayestaganj Police Station and DB police raided the area around 3am.
Sensing the presence of the law enforcers, robbers opened fire on the law enforcers, forcing them to fire back in self-defese that triggered the gunfight, he said
After the gunfight, police recovered Kudrat from the spot and took him to upazila hospital where doctors declared him dead, the SP added.
He also said there were 13 robbery cases against Kudrat and he used to commit robbery in Sylhet, Moulvibazar, Brahmanbaria, Narsingdi and Cumilla with his gang.
Police recovered a locally-made pipe gun, six rounds of bullets, two daggers and rods from the spot.