A suspected terrorist has been shot dead after attempting to attack officers with a large knife at a police station in Barcelona.

Members of the Catalan police force and other authorities searched the man's home a short distance from the police station while his partner was questioned, local reports said.

Police said the man entered the station in Cornella, in the northeastern region of Catalonia, shortly before 4am, seeking information. Police shot the attacker dead.

This is a developing story.

Teresa Cunillera, the central government's representative in Catalonia, called for "prudence" before deciding what the man's motive was and until police had finished their probe.

Catalan police officers stand guard at the entrance of a building during a raid, following an attack in Cornella de Llobregat near Barcelona, Spain, Monday, August 20, 2018.

Spanish media have reported the man, believed to be a 29-year-old Algerian was shouting "Allahu Akbar" as he attacked the officers. The man, named as Abdelouahab Taib, was "intending to attack the officers", according to a statement published by the police on Twitter.

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

But he says police have found no evidence linking the incident to last year's terror attacks in Barcelona and nearby Cambrils, which killed 16 people.

ISIS claimed responsibility for the attacks, Spain's worst since the Madrid train bombings in 2004 when 191 people died and more than 1,800 were wounded.

The Interior Ministry said it was keeping the country's terror alert at Level 4, indicating high risk.

Catalonia, which is home to a significant number of second-generation immigrants, has had a long history of Islamic militant activity.

Younes Abouyaaqoub, the jihadist who carried out the attack at Las Ramblas, was shot to death after amanhunt. During a news conference later in the day, law enforcement clarified that the incident is being investigated as a "terrorist attack".

Popular news

Trump assails Mueller following Times report
He also said The New York Times leaked the report to get Trump angry with McGahn so he would be willing to testify in the probe. Dean was White House counsel to Richard Nixon during Watergate, but ultimately cooperated with prosecutors.

The environmental cost of contact lenses
Americans use about 14 billion contact lenses every year, resulting in an estimated 50,000 pounds winding up in sinks and toilets. And with 45 million contact lens wearers in the US alone, that's a lot of contacts ending up in water treatment plants.

Nervous Korean families wait to be reunited
Most of the 89 participants chosen from the South are in their 70s or 80s, while the oldest is 101. But as those who remember the war grow old, time is running out for many of them.

Namibia, Kenya in showdown for World Cup berth
Head coach Ian Snook equally believes with good preparation, the Simbas can still grab the final 20th World Cup slot in Japan. The Simbas skipper Davis Chenge described the loss as tough for Kenya who had gone into the match with much optimism.

Apple removes illegal lottery apps from China store
Messages sent through the iMessage service are encrypted, which means only the sender and the receiver can access it. China is one of Apple's largest markets, accounting for roughly 20 percent of its revenue a year ago .

Nvidia's Beefy New Graphics Card Will Cost £1099
The use of GGDR6 memory and the number of CUDA cores all-but-confirms that the RTX 2080 Ti will be on hell of a pixel pushing GPU. The family is fleshed out with the GeForce RTX 2080 (2944 CUDA cores) and the GeForce RTX 2070 (2304 CUDA cores).

Nokia Announcing New Phone On August 21
It has various connectivity features like 4G VoLTE, WiFi 802.11 ac, Bluetooth 5, GPS + GLONASS and Type-C. It is expected that HMD Global also announce the Nokia 5.1 Plus along with the Nokia 6 .1 Plus.

Adrian Peterson Signs With The Washington Redskins
In another move, Washington also signed running back De'Veon Smith and waived tackle Cameron Jefferson, designated as injured. Perine is likely to miss one week, with Marshall out two to four weeks, according to reports .