Militants took hundreds of prisoners, including dozens of terrorists, from the "prison."