A former police commissioner who served on the force for more than 40 years has died following a “courageous battle” with cancer.