Police said the man entered the police station in Cornella'with the aim of attacking the agents

A man armed with a knife was killed when he attacked a police station near the northeastern Spanish city of Barcelona early Monday, police said.

“A man armed with a knife entered the police station in Cornella to attack the officers. The attacker was shot,” the Catalonia regional police said on Twitter.

A police spokesman refused to comment on local media reports that the man was from Algeria and had shouted “Allahu akbar” (God is greatest) during the attack.

The incident occurred days after the first anniversary of a deadly jihadist rampage in Catalonia.

Sixteen people were killed on August 17, 2017 when a van drove into crowds on the popular Las Ramblas boulevard in the heart of Barcelona and in a knife attack in the nearby resort of Cambrils.

The Islamic State (IS) group claimed responsibility for the attacks.

Get more stories like this on Twitter & Facebook

AD: To get thousands of free final year project topics and other project materials sorted by subject to help with your research [click here]