The Syrian army said "a number of" Islamic State group militants had escaped a prison that had been under the control of the Kurdish-led Syrian Democratic Forces.