Some of the demonstrators waved Taliban flags and police say some members of the militant group had infiltrated the crowd .