The tizzy officials and visitors ran helter skelter, creating chaos in the office.
SDM Bharat Bhushan Gogia said he was alerted by cries of help by his staff.
"I was in office when I heard screams and noise outside and people came running into my office. They thought the snake was behind them. After some time, the reptile slithered into my chamber," he said.
"I asked my staff to clam down and not hurt the reptile," he said.