Hypothetically? Yes. Just like you hypothetically have the moral and legal right to kill a human being that a reasonable person would assume posed an imminent danger, one can do the same to any animal.
But in this specific case, the zoo seemed to have badly botched the situation.