Iranian state TV had previously reported that Iran had agreed to release five detainees in return for cash.