Slang abbreviation of 金玉, even more casual and often used in set phrases like タマが縮む (to be scared stiff).
Etymology
Compound of 金 (kin, 'gold') and 玉 (tama, 'ball'), literally 'gold balls'. The exact origin is uncertain, but it is a euphemistic or humorous reference to the shape and value.