The electoral commission is preparing to release final results Friday from a hotly-contested vote in which the opposition has already claimed victory, fanning tensions in the east African nation.

The National Super Alliance (Nasa) opposition coalition on Thursday demanded that its candidate Raila Odinga be declared president, claiming massive fraud was behind preliminary results that place him far behind incumbent Uhuru Kenyatta.

Supporters of Nasa presidential candidate Raila Odinga hold a campaign poster as they take to the streets in Kisumu's Kondele estate on August 10, 2017 to protest preliminary election results. PHOTO | KEVIN MIDIGO | AFP

Foreign observers praised a peaceful, credible voting process on Tuesday, but the mood quickly turned sour with Mr Odinga rejecting results after only a few hours of counting.

Mr Odinga first complained the electronically transmitted results were not being backed up by the required forms and then hours later he unveiled details of an alleged hacking attack to manipulate results.

Nasa then doubled down with a claim the poll agency (IEBC) was concealing true results contained on its server that showed Odinga to be the winner.

People turned out in their numbers to cast their ballots on August 8, 2017, including this man who blacked out  near a polling station in Kibera. PHOTO | EMMA NZIOKA | NATION MEDIA GROUP

"We demand that the IEBC chairperson announce the presidential election results forthwith and declare Raila Amolo Odinga... as the duly elected president," said one of Nasa's leaders, Musalia Mudavadi.

The charge ratcheted up tensions that have seen Kenya on a go-slow since voting day, with many businesses shut, civil servants staying at home and streets largely empty.

Protests have remained isolated to Mr Odinga's strongholds in Nairobi slums — where police shot dead two protesters Wednesday — and the western city of Kisumu.

People disputing preliminary presidential results protest in Mathare on August 9, 2017. PHOTO | JEFF ANGOTE | NATION MEDIA GROUP

But memories are still fresh of a disputed poll in 2007 that led to two months of ethno-political violence, leaving 1,100 dead and displacing 600,000.

While veteran opposition leader Odinga, 72, also claimed 2013 polls were stolen from him, he took his grievances to the courts and ended up accepting his loss.

"We do not want to see any violence in Kenya. We know the consequences of what happened in 2008 and we don't want to see a repeat of that," Odinga told CNN in an interview.

Residents watch clashes between police and protestors in Mathare slum in Nairobi, on August 9, 2017, a day after general election. PHOTO | CARL DE SOUZA | NATION MEDIA GROUP

Page 1 of 2