Deputy and retiring K9 can stay together