That was most certainly an ad hominem. It was an attempt to counter a point by attacking the messenger, not the argument. Textbook, really.