He was shot in order to prevent him from hurting a child that fell in his enclosure. Some people say they could have tranquilized him, but tranquilizers take time to work, and the shock of being essentially shot with a needle could have cause him to go berserk and kill the child.