Nigerian police free 259 from illegal detention in mosque