If the way out is blocked by spikes, you'll have to find the switch.
Did you notice what Armal Sadak did to block the door?