Nigerian President Buhari described the interruption of the prison that released nearly 2,000 detainees as an “act of terrorism”