Arbas Hamaz Hamid, 24, was among five people who descended on the vet’s surgery in north Acomb, said Kathryn Walters, prosecuting.
For several minutes, the group confronted the vet in a small consulting room before Hamid struck.
York magistrates heard he was angry because the dog had died while undergoing surgery at the vet's.
YOU’LL FIND MORE ON THIS STORY AND OTHERS AT www.yorkpress.co.uk OR PICK UP YOUR COPY OF THE NEWSPAPER ITSELF AVAILABLE SIX DAYS A WEEK AT YOUR LOCAL NEWSAGENT