It could be he is tapping a table while thinking, or he could be resting his head on his hand and once again tapping his finger on his head lastly it could be as you think and him rubbing his temples.
Lightly tapping with his forefinger. Though in all honesty, you can leave out which finger it is because it's often better not to specify things too much in English.