Sheriff fights for custody of dog