This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

PARIS — An armed man took hostages in a supermarket in southern France on Friday, killing two and injuring about a dozen others, police said. He had earlier opened fire on officers nearby.

The suspect was later shot to death by police, a police union official told the Associated Press.

Prime Minister Edouard Philippe said all information suggested it “seems to be a terrorist act.” France has been on high alert since a string of Islamic extremist attacks in 2015 and 2016 that killed more than 200 people.

The attacker first fired six shots at police officers who were on their way back from jogging near the city of Carcassonne on Friday morning, said Yves Lefebvre, secretary general of SGP Police-FO police union. One police officer had a shoulder injury but it was not serious, Lefebvre said.

The suspect then went to a Super U supermarket in the nearby small town of Trebes, about 60 miles (100 kilometers) southeast of Toulouse. Special police units were sent to the scene and local authorities blocked roads and urged residents to stay away.

The Paris prosecutor’s office said counterterrorism investigators were taking over the probe but did not provide details about why. Unconfirmed media reports say the assailant claimed connections to the Islamic State group.

French Interior Minister Gerard Collomb headed for the scene after talking with French President Emmanuel Macron, who is following the situation closely, according to a security official.