Police in Spain say they have thwarted a new attack by the terror cell that earlier blew up a house and killed more than a dozen people by plowing a van into a crowded pedestrian walkway.

The latest attack was targeted toward Cambrils, a beach town south of Barcelona, the Catalan regional police reported Thursday night. Police said they fatally shot five people, who all were carrying bomb belts and had run over civilians with a car.

Spanish public TV reported some of the suspects in the Cambrils attack were carrying explosive belts and also that seven civilians were injured. Police have asked citizens in the town not to leave their homes.

Cambrils, pop. 33,000 is a small coastal city and a popular tourist destination on the so-called Gold Coas, with an international airport serving it. There are many tourist draws there, including the PortAventura World amusement park, the most popular in Spain, as well as long sandy beaches and a popular port.

The dramatic events in and around Barcelona have so far killed at least 14 civilians. A white van that plowed through a pedestrian walkway in a trendy tourist spot, killing 13, and an explosion at a private house are both believed to be the work of a terrorist cell targeting points in Spain, authorities said Thursday.

The van attack happened in the popular Las Ramblas tourist district, injuring at least 100 others in addition to those who were killed. It's the latest in a chilling trend of vehicular terrorism that requires little organization, manpower or technological know-how.

Vehicles have been used to plow into pedestrians in the United Kingdom twice this year, including a June attack on London Bridge that killed eight people and a March attack on Westminster Bridge where four pedestrians and one police officer were killed. In late December, a truck plowed into a Christmas market in Berlin, killing 12 people and wounding nearly 50 others.

Police Major Josep Lluis Trapero said at a news conference that the van attack is “connected” to an explosion the night before in a town south of the city in which one person died and injured several more. Details are still sketchy in that attack and why the house was targeted.

Police detained two people in connection with the attack, according to Carles Puigdemont, president of Spain’s Catalonia region. Police said at an evening press conference that the van driver is still on the loose.

Catalan regional police identified one of the suspects as Oukabir Driss, 28, a Moroccan citizen and legal resident in Spain. Police said they were "treating him as a terrorist."

The U.S.- based based SITE Intelligence Group that tracks terrorist networks said the Amaq News agency, which is linked to the Islamic State, reported that the extremist group had claimed responsibility for the attack.

The attack unfolded Thursday afternoon as pedestrians filled the bustling Las Ramblas district lined with stalls and shops in the center of Barcelona. August is peak tourist season in Barcelona, which is a popular destination for Americans.

The van entered Las Ramblas at the northern edge, jumped the sidewalk and barreled into the central pedestrian zone. It careened more than 600 yards through the pedestrian section, zig-zagging through the crowds, according to Rac1. It came to stop atop the famous Joan Miró mosaic, where the attackers fled.

State-owned broadcaster RTVE reported that investigators think two vans were used — one for the attack and a second as a getaway vehicle, according to the Associated Press.

"We can confirm this was a terror attack. The counter-terror protocol has been activated," the Catalan police tweeted.

The police force for Spain's Catalonia region says a car also knocked down two police officers at a traffic checkpoint in Barcelona.

The Mossos d'Esquadra force did not indicate if the incident was related to the van attack in the city's Las Ramblas district on Thursday that left 12 people dead and dozens injured.

Laia González, 22, a recent university graduate who lives nearby, was getting ready to go out and shop with her parents when they heard screaming.

“We went out on the balcony and saw many people running, stumbling over each other, screaming in absolute horror, going inside shops, and shops shutting down," she said. "All you could hear was screaming and the loud noise of (store's) metallic blinds.”

Albert Tort, 47, a nurse who lives in the area, tells the Spanish newspaper El Pais the scene of the carnage was a "real disaster."

"I have counted at least 6 dead, I have tried to revive a young man but it has been impossible, " Tort said.

Policemen stand next to vehicles in a cordoned off area after a van ploughed into the crowd, injuring several persons on the Rambla in Barcelona on August 17, 2017. (JOSEP LAGO/AFP/Getty Images)

In Washington, the White House says President Trump has been alerted to the unfolding situation. He said on Twitter than the U.S. condemns the terror attack and "will do whatever is necessary to help. Be tough & strong, we love you!"

This year there have been several high-profile terror attacks involving vehicles across Europe. In Spain, there hasn't been a major terrorist attack since the 2004 Madrid train bombings by Al Qaeda inspired terrorists, according to El Pais.

The CIA warned Barcelona police two months ago of a possible terrorist attack targeting Las Ramblas, according to El Periodico, a Catalunya daily newspaper.

El Periodico reported that Barcelona has been on alert since last year when the Islamic State showed a picture of La Sagrada Familia — one of the most famous churches in Barcelona — among other notable landmarks such as the Coliseum in Rome, Big Ben in London and the Statue of Liberty in New York as high risk targets.

A graphic showing where a deadly van attack in Barcelona took place on Aug. 17, 2017. 

The government of Catalonia's Carles Puigdemont tweeted, "Maximum prudence and all the attention to the victims in the events of this afternoon in Barcelona."

August is peak tourist season in Barcelona, which is a popular destination for Americans.

Associated Press contributed to this report