Sub-inspector dies in Telangana as revolver goes off