STOCKHOLM — A knife attack that killed two people and wounded eight others in southwestern Finland is being investigated as a terrorist attack apparently aimed at women, Finland’s National Bureau of Investigation said on Saturday.

The suspect, who was shot after the attack in Turku and hospitalized with a leg wound, is an 18-year-old Moroccan, the bureau said on Twitter. At a news conference on Saturday afternoon, the police said he had been in Finland since last year and was seeking asylum. They said he would be questioned at the hospital as soon as possible.

Four other suspects, also Moroccan citizens, have been arrested in Turku, and a search warrant was issued for a sixth. A car was also seized as part of the investigation, the police said.