A police union official says officers have stormed the French supermarket where a suspect took hostages and shot people — killing two and wounding a dozen — before being killed by police.

Yves Lefebvre, secretary general of SGP Police-FO police union, said he didn't have immediate details on the number of victims from Friday's incident in the town of Trebes.

Another police official also said the suspect was killed.

French national police earlier said at least two people were killed and a dozen wounded in the incident French President Emmanuel Macron looks like a terrorist attack.

Earlier, BFM TV said the hostage-taker claimed allegiance to Islamic State. Mayor Eric Ménassi told LCI TV that the man entered the shop screaming "Allahu Akbar, (God is greatest) I'll kill you all".

Prime Minister Edouard Philippe said 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.

"Most of the employees and customers of the Super U managed to flee," a source told AFP, adding that a police officer was in contact with the gunman at the supermarket in the town of Trebes, near Carcassonne.

Material from The Associated Press, Reuters, and AFP is included in this report.