Officials who went to remove encroachments on forest land were held hostage for five hours and beaten.