This is a hand that you made two key errors with. The first was that you resaise was too small. The AJ had the right odds to call you with. Often with aces or any big hand, you have gotta make your opponents pay to see that flop. By not pushing more you give your opponents an opportunity to outdraw you. The second error make was that with the board paired on the flop, you didn't think about your opponent's hand and made a loose call thinking the aces were good. When in these situations, put your opponents on a hand and evaluate whether you are ahead or behind.
When at the tables, play for the love of the game and show respect for your opponents.