Municipality ordered to reinstate axed senior official