Bit of a cricket thing going on here:
C (caught, ie 'dismissed') + STUPIDITY ('foolishness') with ST (stumped, ie 'dismissed') 'dismissed' (deleted).
For the wordplay to work properly, the second comma should really be between 'dismissed' and 'foolishness'.