The joke is a pun. To 'snap' can mean to make a sudden loud or angry retort to someone.  One could also 'snap' a picture, meaning to capture a picture.
' ' I can take photographs if I want to ! ' ' Tom snapped .