STOCKHOLM—The Swedish police officer who shot and killed a 69-year-old man in the Stockholm suburb of Husby in May acted in self-defense, a prosecutor said Wednesday.

The shooting and initial police misinformation over the incident sparked the country's worst outbreak of civil unrest in years, starting with protests in Husby and spreading in the days that followed to other suburbs of Stockholm, which were hit by widespread rioting and vandalism.

...