It all depends on the situation at the table, in your case, if you notice that the player who staged All-In played aggressively before that (a wide hand range), then your call here will be correct (just this cooler - it happens), but if this one the player played tight (a narrow range of starting hands), then I would have folded here, if this is the Early stage of the tournament, and you have the AK hand,and one of the opponents put All-In, you'd better fold your hand, since you do not have information about the players at your table, you just have to wait and get information about your opponents, so that it's easier for you to play later.