Indonesian police check burnt buses in Jakarta, Indonesia, Wednesday, May 22, 2019. Supporters of the losing presidential candidate burned vehicles and battled police and the government announced restrictions on social media. (AP Photo/Achmad Ibrahim)

JAKARTA, Indonesia (AP) — The Latest on post-election protests in Indonesia (all times local):

5 p.m.

Indonesia's President Joko Widodo says authorities have the volatile situation in the capital Jakarta under control following riots by supporters of his rival in last month's presidential election.

Police say six people have died and dozens were injured in rioting that began late Tuesday evening following the release of official election results showing Widodo had won a second term.

Flanked by the military chief and other top leaders, Widodo said, "I will work together with anyone to advance this country, but I will not tolerate anyone who disrupts the security, democratic processes and unity of our beloved nation."

Supporters of former special forces general Prabowo Subianto burned vehicles and threw rocks and Molotov cocktails at police, who responded with tear gas and rubber bullets.  

Police have said the rioting was planned rather than spontaneous. Subianto has refused to concede defeat to Widodo in the April 17 election. He instead declared himself the winner and plans a court challenge.

___

2 p.m.

Indonesian police say based on reports from hospitals six people have died in rioting in Jakarta a day after the presidential election results were announced.

Police chief Tito Karnavian told a news conference authorities are still investigating the causes of death and are not ruling out the involvement of third parties acting as provocateurs. 

He said the information police obtained showed victims were hit by gunshots or blunt devices. Karnavian said, "This is what we have to make clear, where and why."

Supporters of former special forces general Prabowo Subianto clashed with security forces in Jakarta on Wednesday, burning vehicles and throwing rocks at police, who responded with tear gas and rubber bullets. 

Police have said the rioting was planned rather than spontaneous. Subianto has refused to concede defeat to President Joko Widodo in the April 17 election. He instead declared himself the winner and plans a court challenge.

___

1:30 p.m.

Indonesia's top security minister says authorities will block access to social media in certain areas amid violent protests in the capital Jakarta by supporters of the losing presidential candidate.

Wiranto, who uses a single name, didn't specify which areas would be subject to the restrictions in the televised news conference.

Supporters of Prabowo Subianto, who was defeated by President Joko Widodo in the April 17 election, clashed with security forces in Jakarta on Wednesday, burning vehicles and throwing rocks at police, who responded with tear gas and rubber bullets.

Police have said the rioting was planned rather than a spontaneous outburst. The official election results were announced on Tuesday and Subianto, a former general, has refused to concede defeat, instead declaring himself the winner and planning a court challenge.

___

7 a.m.

Supporters of an unsuccessful presidential candidate clashed with security forces and set fire to a police dormitory in the Indonesian capital after the release of official election results.

National Police spokesman Dedi Prasetyo said protests turned violent late Tuesday and continued during the night. He said Wednesday that dozens of people were detained.

KompasTV showed protesters throwing rocks, a paramilitary police dormitory on fire, and hundreds of riot police in a central neighborhood of the city.

Indonesia's Election Commission on Tuesday said President Joko Widodo had won a second term with 55.5% of the vote in the April 17 election. His opponent, former general Prabowo Subianto, has refused to accept the results and declared himself the winner.

Indonesian soldiers extinguish burning tires during a clash between protesters and the police in Jakarta, Indonesia, Wednesday, May 22, 2019. Supporters of an unsuccessful presidential candidate clashed with security forces in the Indonesian capital on Wednesday, burning vehicles and throwing rocks at police using tear gas and rubber bullets. (AP Photo/Dita Alangkara)
A protester shouts slogans as he is seen through the shield of a riot police officer in Jakarta, Indonesia, Wednesday, May 22, 2019. Supporters of an unsuccessful presidential candidate clashed with security forces in the Indonesian capital on Wednesday, burning vehicles and throwing rocks at police using tear gas and rubber bullets. (AP Photo/Dita Alangkara)
Riot police officers take their position outside the building that house the Election Supervision Board in Jakarta, Indonesia, Wednesday, May 22, 2019. Supporters of an unsuccessful presidential candidate clashed with security forces in the Indonesian capital on Wednesday, burning vehicles and throwing rocks at police using tear gas and rubber bullets. (AP Photo/Dita Alangkara)
Protesters burn tires on a street during a clash with the police in Jakarta, Indonesia, Wednesday, May 22, 2019. Supporters of an unsuccessful presidential candidate clashed with security forces in the Indonesian capital on Wednesday, burning vehicles and throwing rocks at police using tear gas and rubber bullets. (AP Photo/Dita Alangkara)
Protesters raise their fists as they taunt officers during a clash with the police in Jakarta, Indonesia, Wednesday, May 22, 2019. Supporters of an unsuccessful presidential candidate clashed with security forces in the Indonesian capital on Wednesday, burning vehicles and throwing rocks at police using tear gas and rubber bullets. (AP Photo/Dita Alangkara)
Protesters burn tires on a street during a clash with the police in Jakarta, Indonesia, Wednesday, May 22, 2019. Supporters of an unsuccessful presidential candidate clashed with security forces in the Indonesian capital on Wednesday, burning vehicles and throwing rocks at police using tear gas and rubber bullets. (AP Photo/Dita Alangkara)
Protesters walk past burning garbage during a clash with the police in Jakarta, Indonesia, Wednesday, May 22, 2019. Supporters of an unsuccessful presidential candidate clashed with security forces in the Indonesian capital on Wednesday, burning vehicles and throwing rocks at police using tear gas and rubber bullets. (AP Photo/Dita Alangkara)
Indonesian police walk near fire from a molotov cocktail during a clash with supporters of Indonesian presidential candidate Prabowo Subianto in Jakarta, Indonesia, Wednesday, May 22, 2019. Supporters of the unsuccessful presidential candidate clashed with security forces and set fire to a police dormitory and vehicles in the Indonesian capital on Wednesday after the release of official election results. (AP Photo/Achmad Ibrahim)
Supporters of Indonesian presidential candidate Prabowo Subianto carry an injured man during a clash with Indonesian police in Jakarta, Indonesia, Wednesday, May 22, 2019. Supporters of the unsuccessful presidential candidate clashed with security forces and set fire to a police dormitory and vehicles in the Indonesian capital on Wednesday after the release of official election results. (AP Photo/Achmad Ibrahim)
Indonesian riot police officers fire a tear gas launcher to disperse supporters of Indonesian presidential candidate Prabowo Subianto in Jakarta, Indonesia, Wednesday, May 22, 2019. Supporters of the unsuccessful presidential candidate clashed with security forces and set fire to a police dormitory and vehicles in the Indonesian capital on Wednesday after the release of official election results. (AP Photo/Achmad Ibrahim)
Indonesian riot police officers fire a tear gas launcher to disperse supporters of Indonesian presidential candidate Prabowo Subianto in Jakarta, Indonesia, Wednesday, May 22, 2019. Supporters of the unsuccessful presidential candidate clashed with security forces and set fire to a police dormitory and vehicles in the Indonesian capital on Wednesday after the release of official election results. (AP Photo/Achmad Ibrahim)
A supporter of Indonesian presidential candidate Prabowo Subianto runs from smoke of tear gas fired by police officers in Jakarta, Indonesia, Wednesday, May 22, 2019. Supporters of the unsuccessful presidential candidate clashed with security forces and set fire to a police dormitory and vehicles in the Indonesian capital on Wednesday after the release of official election results. (AP Photo/Achmad Ibrahim)
An Indonesian riot police officer fires a tear gas launcher to disperse supporters of Indonesian presidential candidate Prabowo Subianto in Jakarta, Indonesia, early Wednesday, May 22, 2019. Supporters of the unsuccessful presidential candidate clashed with security forces and set fire to a police dormitory and vehicles in the Indonesian capital on Wednesday after the release of official election results. (AP Photo)
Indonesian riot police officers fire a tear gas launcher to disperse supporters of Indonesian presidential candidate Prabowo Subianto in Jakarta, Indonesia, Wednesday, May 22, 2019. Supporters of the unsuccessful presidential candidate clashed with security forces and set fire to a police dormitory and vehicles in the Indonesian capital on Wednesday after the release of official election results. (AP Photo)
Supporters of Indonesian presidential candidate Prabowo Subianto clash with the police in Jakarta, Indonesia, early Wednesday, May 22, 2019. Supporters of the unsuccessful presidential candidate clashed with security forces and set fire to a police dormitory and vehicles in the Indonesian capital on Wednesday after the release of official election results. (AP Photo)
Indonesian police take position during a clash with supporters of Indonesian presidential candidate Prabowo Subianto in Jakarta, Indonesia, Wednesday, May 22, 2019. Supporters of the unsuccessful presidential candidate clashed with security forces and set fire to a police dormitory and vehicles in the Indonesian capital on Wednesday after the release of official election results. (AP Photo/Achmad Ibrahim)
A Grab bike driver rides carries an injured supporter of Indonesian presidential candidate Prabowo Subianto during a clash with Indonesian police in Jakarta, Indonesia, Wednesday, May 22, 2019. Supporters of the unsuccessful presidential candidate clashed with security forces and set fire to a police dormitory and vehicles in the Indonesian capital on Wednesday after the release of official election results. (AP Photo/Achmad Ibrahim)
Supporters of Indonesian presidential candidate Prabowo Subianto run from smoke of tear gas fired by police officers in Jakarta, Indonesia, Wednesday, May 22, 2019. Supporters of the unsuccessful presidential candidate clashed with security forces and set fire to a police dormitory and vehicles in the Indonesian capital on Wednesday after the release of official election results. (AP Photo/Achmad Ibrahim)
Indonesian police take position during a clash with supporters of Indonesian presidential candidate Prabowo Subianto in Jakarta, Indonesia, Wednesday, May 22, 2019. Supporters of the unsuccessful presidential candidate clashed with security forces and set fire to a police dormitory and vehicles in the Indonesian capital on Wednesday after the release of official election results. (AP Photo/Achmad Ibrahim)
Indonesian police take position during a clash with supporters of Indonesian presidential candidate Prabowo Subianto in Jakarta, Indonesia, Wednesday, May 22, 2019. Supporters of the unsuccessful presidential candidate clashed with security forces and set fire to a police dormitory and vehicles in the Indonesian capital on Wednesday after the release of official election results. (AP Photo/Achmad Ibrahim)
Indonesian police take position during a clash with supporters of Indonesian presidential candidate Prabowo Subianto in Jakarta, Indonesia, Wednesday, May 22, 2019. Supporters of the unsuccessful presidential candidate clashed with security forces and set fire to a police dormitory and vehicles in the Indonesian capital on Wednesday after the release of official election results. (AP Photo/Achmad Ibrahim)
Supporters of Indonesian presidential candidate Prabowo Subianto run during a clash with the police in Jakarta, Indonesia, Wednesday, May 22, 2019. Supporters of the unsuccessful presidential candidate clashed with security forces and set fire to a police dormitory and vehicles in the Indonesian capital on Wednesday after the release of official election results.(AP Photo/Achmad Ibrahim)
A supporter of Indonesian presidential candidate Prabowo Subianto runs during a clash with the police in Jakarta, Indonesia, Wednesday, May 22, 2019. Supporters of the unsuccessful presidential candidate clashed with security forces and set fire to a police dormitory and vehicles in the Indonesian capital on Wednesday after the release of official election results.(AP Photo/Achmad Ibrahim)