The SC pulled up the state government for not providing adequate security to officials carrying out demolition work