I trust this is a tournament if you are playing with 17 BB.
A4o is marginal here. I get are getting short stack and you move to the BB next so you kind of need to go with any Ace.
I don't like the big raise pre. That was 1/4 of your chips out of position. You did not need to build a pot as you have a maniac behind you to get more action if you hit. If he raises you back you almost need to push.
You got bottom pair on the flop but it does not do much for you as he has a king or not. If he has a K at least 24 is an out.
I get you want to represent a K but if you really had a K you would check to the maniac and let him bet. But if you check you give him a chance to bluff you off the pot. And you kind of need to call. If he has been bluffing this is a board he would bluff. Don't hold back 4.5. You are way past pot committed. I think you need to shove hope he does not have a K.
Maniac did not put you on a K and must have thought his Q was good. I think that was a bad call but he was deep and had a chance to take you out.