Some protesters had said they would not leave the diplomatic enclave until the US embassy was on fire.
Protests over the film, Innocence of Muslims, have claimed several lives.
It was made in the US and is said to insult the Prophet Muhammad.
Streets leading to the enclave, where most of the embassies are housed, were earlier blocked off by shipping containers in an effort to increase security.'Out like a light'
Television pictures showed chaotic scenes as police tried to gain control of the situation.