Flamengo's Copa Libertadores celebrations ended with fans clashing with police as thousands of supporters gathered in central Rio de Janeiro.