World Cup security detains rainbow flagbearer