you said you raised pre-flop. what was the raise? it could be a horrible play if you didn't raise the proper amount pre-flop. when the flop comes with 2 of the same suit i am always cautious, irregardless of whether i have AA or not. if you didn't raise enough preflop someone could limp in with a PP and hit a set on the flop which crushes your AA. always ensure you raise the proper amount preflop to chase out anyone with a mediocre hand.

enough about preflop. say you raised the right amount and made the same play on the flop. i'm not sayin i would make this play with 2 suits on the board, but he was simply an idiot for callin an all-in on a draw. you want these types of people in your hand because he's only gonna catch 1 of 3 times. he just happened to hit when you were all-in. sucks.