The deceased was identified as Ajay Pal, Jalupura police station SHO Rajesh Dhaka said.
Pal's wife and two daughters were away to Alwar and Ajay was alone in the room when he allegedly committed suicide, leaving a note which was yet to be confirmed, he said.
The body was sent to hospital for post-mortem, he said, adding his family was informed about the incident.