Six people died in civil unrest that gripped parts of Jakarta on Tuesday night after the election commission confirmed that President Joko Widodo won last month's election, the governor of the Indonesian capital said.

Protests on Tuesday by supporters of Widodo's challenger for the presidency, former Gen. Prabowo Subianto, started peacefully but turned violent in the evening, forcing police to fire tear gas to disperse the crowd.

"As per 9 o'clock this morning, there were 200 people hurt being brought to five hospitals," Gov. Anies Baswedan told broadcaster TVOne. "The number of people dead was six."