Kyrgyzstan's prime minister has resigned after widespread post-election protests which plunged the country into political chaos.

Kubatbek Boronov has now been replaced by Sadyr Japarov, who protesters released from jail the day before.

Opposition groups had earlier seized control of parliament, protesting election results they say were rigged, BBC reports

Facing mounting pressure, the country's electoral body has annulled the results of Sunday's parliament elections.

Kubatbek Boronov has resigned following a tumultuous few days in Kyrgyzstan

The election results had seen parties allied to the country's president Sooronbai Jeenbekov win the largest share of the votes, amid accusations of mass vote-buying.

President Jeenbekov is still in power but has hinted that he is ready to stand down.

He had earlier told the BBC he was "ready to give the responsibility to strong leaders", but refused to say who he had in mind.

The latest announcement comes after days of chaos which saw protesters seizing government buildings and freeing high-profile political detainees - including Mr Japarov, who had been serving an 11-year sentence for kidnapping a regional governor during an opposition protest seven years ago.

Former president Almazbek Atambayev, who was serving an 11-year sentence for corruption, was also released.

Only four political parties out of 16 had passed the threshold for entry into parliament in Sunday's election. Three of the four had close ties to President Jeenbekov.

The president had indicated he was ready to annul the result, before the official announcement came from the Central Election Commission, which said it had invalidated the election results "in consideration of the political situation in the country".