Paris: A French magazine published vulgar caricatures of the Prophet Muhammad on Wednesday, brandishing its right to free speech amid global tensions over a movie insulting to Islam.
In response, the French government ordered embassies and schools to close Friday in about 20 countries and tens of thousands marched in Lebanon in protest.
The move by the provocative weekly Charlie Hebdo followed days of violent protests from Asia to Africa against the film "Innocence of Muslims" and turned France into a potential target of Muslim rage. Up to now, American government sites have drawn the most ire since the film was produced privately there.
Violence linked to the amateurish movie, which portrays the prophet as a fraud, a womanizer and a child molester, has killed at least 30 people in seven countries, including the American ambassador to Libya.
The French government ordered its embassies and French schools abroad to close on Friday, the Muslim holy day, as a precautionary measure in about 20 countries. It immediately shut down the French Embassy and the French school in Tunisia, which saw deadly film-related protests at the U.S. Embassy there last week.
In the southern Lebanese port city of Tyre, tens of thousands of people marched through the streets Wednesday, chanting "Oh America, you are God's enemy!"
Nasser Dheini, a 40-year-old farmer, said he was angry over the anti-Islam movie and the French caricatures of the Prophet Muhammad.
"Freedom of opinion should not be by insulting religions," Dheini said, carrying his son Sajed, 4, who was dressed in camouflage military uniform.
Dheini said instead of boosting security at French embassies, France should close down the offending magazine.
Other developments on Wednesday included:
— The French Foreign Ministry issued a travel warning urging French citizens in the Muslim world to exercise "the greatest vigilance," avoiding public gatherings and "sensitive buildings."
— Several hundred lawyers protesting the movie forced their way into an embassy area in Pakistan's capital.
— The United States temporarily closed its consulate in an Indonesian city because of similar demonstrations.
— Hundreds protested the film in Sri Lanka's capital, burning effigies of President Barack Obama.
The magazine's provocative act plunged France — which has western Europe's largest Muslim population — into a new debate over the limits of free speech in a modern democracy.
A lawsuit was filed against Charlie Hebdo hours after the Wednesday issue hit newsstands, the Paris prosecutor's office said. It would not say who filed it. The magazine also said its website had been hacked.
France's prime minister said freedom of expression is guaranteed, but cautioned that it "should be exercised with responsibility and respect."
Foreign Minister Laurent Fabius warned that Charlie Hebdo could be throwing "oil on the fire," but said it's up to the courts to decide whether the magazine went too far.
The magazine's crude cartoons played off the film and ridiculed the violent reaction to it. Riot police took up positions outside the offices of the magazine, which was firebombed last year after it released an edition that mocked radical Islam.
Charlie Hebdo's chief editor, who goes by the name of Charb and has been under police protection for a year, defended the cartoons.
"Muhammad isn't sacred to me," he said in an interview at the weekly's offices on the northeast edge of Paris. "I don't blame Muslims for not laughing at our drawings. I live under French law; I don't live under Quranic law."
Charb said he had no regrets and felt no responsibility for any violence.
"I'm not the one going into the streets with stones and Kalashnikovs," he said. "We've had 1,000 issues and only three problems, all after front pages about radical Islam."
Government authorities and Muslim leaders urged calm.
"This is a disgraceful and hateful, useless and stupid provocation," Dalil Boubakeur, rector of the Grand Paris Mosque, told The Associated Press. "(But) we are not Pavlov's animals to react at each insult."
A small-circulation weekly, Charlie Hebdo often draws attention for ridiculing sensitivity around the Prophet Muhammad, and an investigation into the firebombing of its offices last year is still open.
Charlie Hebdo was acquitted in 2008 by a Paris appeals court of "publicly abusing a group of people because of their religion" following a complaint by Muslim associations.
Prime Minister Jean-Marc Ayrault said organizers of a demonstration planned for Saturday against the "Innocence of Muslims" won't receive police authorization. Paris prosecutors have opened an investigation into an unauthorized protest last Saturday around the U.S. Embassy that drew a couple hundred people and led to about 150 arrests.
The debate about the limits of free speech spread to neighboring Germany.
"I call on all those, especially those who rightly invoke the right of freedom of speech, to also act responsibly," Foreign Minister Guido Westerwelle said in Berlin.
The German Embassy in Sudan, which was attacked last week, remains closed and security at German embassies in other countries has been beefed up, he said.
A German group in Berlin dropped plans to show extracts of the film "Innocence of Muslims" because of the outcry it has caused.
The cartoonist of the French caricatures published Wednesday, who goes by the name Luz, was defiant.
"We treat the news like journalists. Some use cameras, some use computers. For us, it's a paper and pencil," he said. "A pencil is not a weapon. It's just a means of expression."
Outside the Charlie Hebdo offices, a passer-by wearing a traditional Muslim tunic said he was neither surprised nor shocked by the cartoons. He criticized France's decision to close embassies and schools for fear of protests by extremists.
"It gives legitimacy to movements that don't have any," said Hatim Essoufaly, who was walking his toddler in a stroller.
In Pakistan, the lawyers who protested in Islamabad shouted anti-U.S. slogans and burned an American flag after they pushed through a gate, gaining access to the diplomatic enclave before police stopped them. They called for the U.S. ambassador to be expelled, and then peacefully dispersed.
Much of the anger over the film, which denigrates Islam's Prophet Muhammad, has been directed at the U.S. government even though the film was privately produced in the United States and American officials have criticized it.
The U.S. Embassy in Indonesia said the consulate in Medan, the country's third-largest city, has been closed temporarily because of demonstrations over the film. About 300 members of Hizbut Tahrir Indonesia, a pan-Islamic movement, rallied peacefully on Wednesday in front of it.
Egyptian authorities deployed five large security trucks with riot police outside the French Embassy in Cairo as a precautionary measure but there were no signs of protests.