A judge declared a mistrial after jurors petted a courthouse therapy dog that wandered into the jury room during the trial of a man accused of killing a neighbor’s dog.