see also

ISIS has claimed responsibility for Thursday’s terror attack in Barcelona...

Law enforcement sources told The Post the two events were connected and that local police were investigating a possible terror cell.

Officials believe that Wednesday’s blast, which occurred at a house in the Catalan town of Alcanar and left one person dead, may have not been intentional — and that those who coordinated the van attack were hoping to use the explosives instead, the sources said.

Investigators are looking into whether the explosion ultimately foiled their terror plot and forced the suspects to execute plan B, which was the vehicle-ramming technique.

Barcelona is the latest European city to experience the ISIS-style attack. Terrorists have used the method at popular tourist destinations in France and the UK.

Sources said that bomb-making materials were found inside the house where Wednesday’s explosion was reported. Authorities have reportedly arrested at least one person in connection to the van assault — in the very same area where the home is located.

“We suspect that (the occupants) were preparing an explosive device,” Josep Lluis Trapero, of the regional Catalonia police, told reporters.

The residence where the explosion happened is located about 125 miles south of Barcelona.