A senior police official said protesters briefly attacked the perimeter of the U.S. Consulate but were later dispersed.