Authorities are investigating the stabbings of nine people inside a Minnesota mall Saturday night as a potential act of terrorism after an Islamic State-linked news agency claimed that the armed attacker was “a soldier of the Islamic State.”

The attack occurred around 8 p.m. inside the Crossroads Mall in St. Cloud, about 70 miles northwest of Minneapolis. It ended inside a Macy’s store where an off-duty police officer shot and killed the suspect.

St. Cloud Mayor David Kleis said the suspect, whom officials are not naming at this time, lunged at Jason Falconer, a part-time police officer in Avon, Minnesota, west of St. Cloud. Falconer then fired shots at the suspect, who fell but got up three times before he died.

“(Falconer) clearly prevented additional injuries and potential loss of life,” Kleis said during a news conference Sunday afternoon. “His heroic actions are exemplary.”

Falconer, who happened to be at the mall Saturday night, is also a former chief of police in Albany, Minnesota.

The suspect, who was wearing a private security uniform, made at least one reference to Allah during the attack and asked at least one person whether the person was Muslim before attacking, according to the St. Cloud Police Department.

In a statement Sunday, Amaq News Agency said the suspect “carried out the operation in response to calls to target citizens of countries belonging to the crusader coalition.”

Richard Thornton, FBI special agent in Minneapolis, said at the news conference that the attacks are being investigated as a “potential” act of terrorism, but the suspect’s motive is unknown.

Officials said there’s no indication at this time that the suspect had direct communications with the Islamic State, or that the terrorist group had planned the attack or knew of it beforehand.

“(ISIS) has encouraged lone-wolf attacks. It has also claimed past attacks that are not believed to have been planned by its central leadership,” according to a St. Cloud police news release.

All of the victims, whose ages range from 15 to 53, suffered non-life-threatening injuries. Three remain hospitalized, authorities said.

Officials did not release any information about the attacker. They also did not comment further on the claim by the Amaq Agency.

St. Cloud Police Chief William Blair Anderson said investigators have executed search warrants at a residence in St. Cloud. Investigators also found the suspect’s vehicle in the mall parking lot.

“There’s nothing that we have gleaned that would suggest to us that this is anything other than what it appears to be now,” Anderson told reporters Sunday. “At this time, there’s nothing to suggest anything differently than what you’ve been told. There are a lot of moving parts.”

Sydney Weires was at the mall during the incident. She told the St. Cloud Times that she and her friends were walking down a hallway when they heard a loud scream. “I saw this security guard sprinting down the hallway toward Target,” Weirs told the paper. “He was yelling, ‘Call the cops! Call the cops!’ ”

She said they later saw two men drenched in blood. One was bleeding from the side of his face, and the other had blood on the back of his shirt.

Weires and her friends were able to leave the mall before authorities enforced a lockdown.

“We could have been one of the victims,” Weires told the newspaper. “It’s insane.”

Another witness, Harley Exsted, said he and his wife were in St. Cloud on Saturday to watch their son play in a college golf tournament, according to the St. Cloud Times.

“All of a sudden I heard ‘pop pop pop,’ ” Harley told the paper. “I just thought someone tipped over a shelf. All of a sudden these people started running. I just saw everybody running away.

“But then when we heard the screaming, then we knew it was time to go,” he said.

The suspect has had encounters with police before, Anderson told reporters, but most were for minor traffic violations.

The mall remained closed Sunday as investigators worked inside.

Many of the attacks that the Islamic State has claimed since the highly coordinated shootings and bombings in Paris last November were carried out by individuals who were simply inspired by the group’s ideology and likely never came into direct contact with ISIS operatives, The Washington Post’s Max Bearak wrote in July.

Saturday’s attack happened on the same night of an explosion in the Chelsea neighborhood of Manhattan in New York City. At least 29 people suffered non-life-threatening injuries in the blast. One person was seriously injured, authorities said.

Hours earlier, a pipe bomb exploded in a Jersey Shore garbage can shortly before a scheduled charity race benefiting Marines and Navy sailors.

Authorities said none of the incidents appears to be related.