Hāwera police officer resigns before being sentenced f