The man tried to run to a police station in Cornella de Llobregat near Barcelona.
The Catalan police were shot dead Monday by a man with a knife who in the aftermath of "Allah Akbar" tried to enter his station. The incident took place at Cornella de Llobregat, Barcelona, reported EFE. It was an apparent Islamic attack.
"A man armed with a knife came to a police station in Cornell to attack the police this morning, the aggressor was shot," the police said.
According to official sources, the attacker was a citizen of Cornella de Llobregat and he was run in documents as a foreigner living in Spain.
The sources reported close to the case that the attacker was an Algerian living in Spain.