It sounds like, you limped or minraised and then got jammed on. With a stack size of less than 10BB its mandatory to jam preflop especially as a mid stack on the bubble. Obviously this would not have changed anything, when he had AK. That is just an unavoidable cooler. But there are many hands, that he might jam, if you limp but fold, if you jam. Like small pairs, worse AX, broadways etc.
And because of the ICM situation you would much rather pick up the blinds and ante uncontested than play a "flip" with the chip leader, even when you dominate some of his range. AQ is not strong enough to induce in a situation like this. To consider that play, you pretty much need to have AA or KK. Everything else would rather get folds and pick up the pot uncontested.