A 45-year-old former software engineer died by suicide at an under-construction building in Bengaluru's Nallurahalli on Thursday, with his family alleging harassment and torture by civic body officials.