JAKARTA, Indonesia—Multiple blasts and gunfire wreaked havoc in the Indonesian capital on Thursday in what officials said were coordinated Islamic State-linked terror attacks, leaving two civilians and five assailants dead.

A Canadian and an Indonesian died along with the five terrorists after the attackers struck in the heart of downtown Jakarta, setting off explosions and opening fire on those trying to flee the mayhem, Indonesian police said.

...