A man who was allegedly attempting to attack police officers with a knife has been shot dead near Barcelona.
The incident happened this morning - shortly before 6am local time - at a police station in Cornellà, a district on the outskirts of the Catalan city.
Police said the suspect approached an officer with a 'large knife'.
In comments quoted by the Reuters news agency, local police official Rafel Comas told reporters: "However you look at it, it was a knife attack against an officer [by a man who] shouted 'Allah is great' and other things that were impossible to make out.
"For now, we are treating it as a terrorist attack."
After the police station attack in Cornellà, we asked to all the police officers use best possible measures security and self-protection
— Mossos (@mossos) August 20, 2018
Police added that the suspect lived nearby, and had been in the country 'for years'.
Mr Comes added that officers had found identification documents on the suspect, and had requested a warrant to search his apartment.
Today's incident comes only days after Barcelona marked the first anniversary of the terror attacks in Spain last August, which left 16 people dead - most of whom died after a van rammed into pedestrians in the Las Ramblas area of Barcelona.
Additional reporting by IRN