The terror group also took at least 240 Jews and foreigners hostage.