Do not attempt to kill your hamster at home. None of the methods listed above are humane and could be considered animal cruelty. Take your hamster to a veterinarian for humane euthanasia. If money is a concern most if not all veterinarians will euthanize an animal for free if it is suffering. Another option would be to take it to an animal shelter--they will euthanize for free.
The best thing for your hamster would be to have euthanasia performed by a veterinary professional so the hamster will not suffer.
The best thing for your hamster would be to have euthanasia performed by a veterinary professional so the hamster will not suffer.