Police used stun grenades and tear gas to clear protesters in the path of the Olympic torch in a poor suburb of Rio de Janeiro.