No history on the villain, I played a few hands at the table when this happened.

PokerStars No-Limit Hold'em, $0.02 BB (6 handed) - Poker-Stars Converter Tool from FlopTurnRiver.com

UTG ($3.34)
MP ($5.16)
Villain (CO) ($3.25)
Button ($5.04)
Hero (SB) ($1.85)
BB ($2.14)

Preflop: Hero is SB with 8, 8
UTG calls $0.02, 1 fold, Villain bets $0.26, 1 fold, Hero calls $0.25, 2 folds

Flop: ($0.56) K, 2, 2 (2 players)
Hero bets $1.59 (All-In), Villain calls $1.59

Turn: ($3.74) 5 (2 players, 1 all-in)

River: ($3.74) Q (2 players, 1 all-in)

Total pot: $3.74 | Rake: $0.15

Results:
Hero had 8, 8 (two pair, eights and twos).
Villain had 10, 10 (two pair, tens and twos).
Outcome: Villain won $3.59

Was I stupid here for shoving the flop and representing a K?

It looks like there is a general rule for the 2NLers to raise 7xbb+ on small pocket pairs. At least from my experience.

Or is it that my villain is stupid enough to call in this situation?