At least three people have been killed and five others injured as a knife-wielding attacker ‍went ‍on a ​rampage in the Taiwanese capital Taipei.

The 27-year-old suspect set off smoke bombs at Taipei's main metro station on Friday, before running to another station in a busy shopping district, stabbing people along the way, Taiwanese Premier Cho Jung-tai said.

The suspect later died after falling from a building, Cho added. His motive remains unclear.

Attacks of this kind are rare in Taiwan, which has low rates of violent crime. The last time a similar incident struck Taipei was more than a decade ago in 2014.

Friday's attack took place during the city's evening rush hour. Videos shared on social media show people fleeing the scene in panic.