That hamster was anything but domesticated, that's why the author had to get rid of him. I am also unsure if killing the animal outright is better than letting it live as it was meant to be:
"In the wild, they burrow underground in the daylight to avoid being caught by predators. Their diet contains a variety of foods, including dried food, berries, nuts, fresh fruits and vegetables." (here).
This means that the hamster will be in his new burrow before you walk away, and will have a good chance of survival. It's not like parks in London are full of foxes.