Police officers seal off the access to Notre Dame cathedral, seen in the background, after a man attacked officers with a hammer outside the famous landmark, in Paris, France, Tuesday, June 6, 2017. The Paris prosecutor's office said the investigation was opened Tuesday soon after the attack. The attacker was shot and wounded in the incident in one of France's most popular tourist areas. In this image provided by Nancy Soderberg, people inside Notre Dame cathedral sit with their hands in the air, after an attack on police in Paris, Tuesday, June 6, 2017. Paris prosecutors have opened a counterterrorism investigation after an unidentified assailant attacked police with a hammer outside Notre Dame Cathedral. French Interior Minister Gerard Collomb says the attacker cried "it's for Syria" as he went after officers patrolling an esplanade in front of the famous landmark. (Nancy Soderberg via AP) Police officers and soldiers seal off the access to Notre Dame cathedral after a man attacked officers with a hammer while patrolling the esplanade in front of the famous landmark, in Paris, France, Tuesday, June 6, 2017. Paris prosecutors have opened a counterterrorism investigation after an unidentified assailant attacked police with a hammer outside Notre Dame Cathedral. Police officers seal off the access to Notre Dame cathedral in Paris, France, Tuesday, June 6, 2017. Paris police say an unidentified assailant has attacked a police officer near the Notre Dame Cathedral, and the officer then shot and wounded the attacker. Police officers seal off the access to Notre Dame cathedral in Paris, France, Tuesday, June 6, 2017. Paris police say an unidentified assailant has attacked a police officer near the Notre Dame Cathedral, and the officer then shot and wounded the attacker. Police officers seal off the access to Notre Dame cathedral in Paris, France, Tuesday, June 6, 2017. Paris police say an unidentified assailant has attacked a police officer near the Notre Dame Cathedral, and the officer then shot and wounded the attacker. French interior minister, Gerard Collomb, center left, addresses the media after a man attacked police officers with a hammer on the esplanade of the Notre Dame cathedral in Paris, France, Tuesday, June 6, 2017. Gerard Collomb says the attacker cried "it's for Syria" as he went after officers patrolling an esplanade in front of the famous landmark. Police officers seal off the access to Notre Dame cathedral in Paris, France, Tuesday, June 6, 2017. Paris police say an unidentified assailant has attacked a police officer near the Notre Dame Cathedral, and the officer then shot and wounded the attacker. Police officers seal off the access to Notre Dame cathedral in Paris, France, Tuesday, June 6, 2017. Paris police say an unidentified assailant has attacked a police officer near the Notre Dame Cathedral, and the officer then shot and wounded the attacker. French interior minister, Gerard Collomb, addresses the media after a man attacked police officers with a hammer on the esplanade of the Notre Dame cathedral in Paris, France, Tuesday, June 6, 2017. Collomb says the attacker cried "it's for Syria" as he went after officers patrolling an esplanade in front of the famous landmark. A man, upper left, who attacked a police officer, laying wounded on the esplanade of Notre Dame cathedral in Paris, France, Tuesday, June 6, 2017. Paris police say an unidentified assailant has attacked a police officer near the Notre Dame Cathedral, and the officer then shot and wounded the attacker. (David Metreau via AP) A man, upper center right, who attacked a police officer laying wounded on the esplanade of Notre Dame cathedral in Paris, France, Tuesday, June 6, 2017. Paris police say an unidentified assailant has attacked a police officer near the Notre Dame Cathedral, and the officer then shot and wounded the attacker. (David Metreau via AP)
At least 600 people were blocked inside the iconic 12th century church while police first secured the streets around it, then combed the pews while visitors sat with their hands raised for the check. Others fled in panic from the sprawling esplanade outside the cathedral.
The assault was the latest act of violence targeting security forces at high-profile sites in France, which remains under a state of emergency after a string of Islamic extremist attacks. No group immediately claimed responsibility, but police searching a residence linked to the attacker in the Paris suburb of Cergy-Pontoise found a declaration of allegiance to the Islamic State group, according to the Paris prosecutor's office.
Interior Minister Gerard Collomb told reporters that a police officer in a three-person patrol was lightly wounded in the attack, and the assailant was shot and wounded by a fellow officer. The attacker's condition was being evaluated.
"A person came up behind the police officers, armed with a hammer, and started to hit the police officer," he said. The man yelled "This is for Syria," Collomb said, adding that the attacker appeared to have acted alone.
A hammer and kitchen knives were found on the assailant, as well as a student identity card indicating he was from Algeria, Collomb said. He said authorities were working to verify the card's authenticity.
"We have passed from a very sophisticated terrorism to a terrorism where any instrument can be used for attacks," the interior minister said. The head of the Municipal Police Defense Union, Cedric Michel, said the attacker was about 40 years old. A police official from another union confirmed the age of 40. The second official asked to remain anonymous to discuss the investigation.
The incident happened around 4:20 p.m. A large number of police cars descended on the Ile de Cite island in the Seine River, where the celebrated cathedral is located. Authorities told people to stay away from the area and some took refuge inside the cathedral. People inside Notre Dame, the nearby Sainte-Chapelle chapel noted for its stained glass, and area bars and cafes were told to stay inside while the police operation was underway.
Among the several hundred people ordered to remain inside the cathedral was a former U.S. ambassador to the United Nations, Nancy Soderberg. She was admiring the church's stained glass windows when a French announcement came on urging those inside to stay calm as police dealt with an incident outside.
The visitors got nervous when they were told soon after that the doors were closing and everyone had to stay inside, Soderberg told The Associated Press from inside Notre Dame. "It was really scary. We had no idea if there were any accomplices inside," she said.
They were being released Tuesday evening one by one after careful police searches. Witnesses described a dramatic police operation in the tourist-filled area. Lawrence Langner, a 73-year-old American visiting the neighborhood just across the Seine from the cathedral, told The Associated Press that he suddenly heard a commotion and two detonations like gunshots.
Journalist David Metreau, who said his office overlooks the square that fronts Notre Dame, tweeted that there were two blasts that sounded like shots. Looking down from his office, he saw a man inert on the square.
"The police didn't seem interested in him at the beginning," Metreau said. "I thought he was dead." Officers then checked the man's pulse, while medics eventually came and took him away on a stretcher.
Soderberg said those inside the cathedral remained calm and orderly throughout despite not knowing what was happening. But "everyone was very quiet and very scared" when police came in to check the cathedral's pews row by row, she said.
She tweeted a photo from inside the cathedral showing those locked inside putting their arms in the air as instructed by police. "We will remember this for the rest of our lives," she said. "Now everyone just wants to go home."
The attack came the day before new President Emmanuel Macron unveils his first efforts against terrorism, which Collomb called the president's top priority. Paris remains under high security after a string of Islamic extremist attacks in recent years, including several targeting police officers and security personnel.
In April, an attacker opened fire on a police van on Paris' Champs Elysees, killing one and gravely wounding two others. The attacker was shot dead by police. The incident recalled two other attacks on soldiers providing security at prominent locations around Paris, one at the Louvre museum in February and one at Orly airport in March.
Associated Press writers Angela Charlton, John Leicester and Sylvie Corbet in Paris and Sylvia Hui in London contributed to this report.
Vista de Notre Dame.

A Polícia de  na  respondeu a um alerta de um possível atentado no ponto turístico de .
Um homem agrediu um policial com um martelo e o policial respondeu a tiros, o agressor foi ferido a tiros. O corpo do agressor ficou no chão até os policiais chegarem.

A polícia informou aos turistas que fiquem longe do local. Testemunhas disseram na  que ainda estão presas na catedral.

Pelo menos 600 pessoas foram bloqueadas dentro da icônica igreja do século XII, enquanto a polícia primeiro assegurou as ruas em torno dela enquanto os visitantes estavam sentados com as mãos levantadas para serem questionados.