Fireworks exploded over the Copacabana beach in Rio de Janeiro.