How do you tame a hamster from attacking other hamsters?

You cannot--and you should never try! Most types of hamster are solitary creatures by nature and should not be kept with other animals. Because they're so territorial, they will fight, usually with a tragic result. There's nothing you can do to change that, it's just part of being a hamster. If you want to keep more than one, keep them in separate cages.