(CNN) Violence erupted after the re-election of Kenyan President Uhuru Kenyatta this week, leaving at least 24 people dead nationwide, a rights group said.

The victims included a 9-year-old girl, according to the Kenya National Commission on Human Rights.

Relatives said the victims were shot dead in various parts of the nation, including 17 in the capital of Nairobi, the group said.

Kenyatta, the 55-year-old son of the country's founding President, was declared the winner Friday, defeating veteran opposition leader Raila Odinga for a second five-year term.

Supporters of Kenya's President Uhuru Kenyatta cheer as they hear the election results, downtown Nairobi, Kenya, Friday, Aug. 11, 2017. Opposition candidate Raila Odinga claimed the vote was rigged.

He got 54% of the vote while Odinga, a longtime rival, received 45%.

Tensions, protests

Protests and violence broke out after he was declared the winner.

Most of the demonstrators were supporters of Odinga, who has rejected the results of the presidential election, calling the vote rigged. National election officials have decried the accusations, saying the vote was free and credible.

Protests erupted in and around Kisumu, a stronghold of Odinga. One person was killed overnight in Kisumu, police said.

Violence also broke out in Nairobi's slum of Mathare, where tear gas and gunshots rang out all night, witnesses said.

Stabhay Mokaya, 9, was killed by a stray bullet during protests in Mathare early Saturday, her father said.

Stabhay Nyarangi Mokaya, center, was killed by a stray bullet during protests in Mathare in Nairobi early Saturday, August 12.

"There were three kids playing in the balcony on the fourth floor, and then all of a sudden there was a gunshot which hit the young girl," Wycliff Mokaya said.

Mokaya said police were surprised to find out a bullet had hit the balcony. He said the girl's mother was "in the worst pain."

The Kenyan Red Cross said it had treated at least 93 people injured in the violence.

Most of Kenya is calm

Violence in Kenya could have ripple effects far beyond the nation of 47 million people.

As the largest economy in East Africa, Kenya is a crucial trade route to the continent and provides an important buffer of stability in a region that includes the fledgling Somali government and the politically tense Sudan and South Sudan.

Beyond the deadly incidents in Kisumu and Nairobi, most of the nation remained relatively calm Saturday.

Photos: Violent protests erupt in Kenya over presidential election results Riot police prepare to pass burning barricades as they push toward protesters during clashes on August 12, 2017, in the Mathare slum of Nairobi, Kenya. Demonstrators objected to the re-election of President Uhuru Kenyatta over opposition leader and former Prime Minister Raila Odinga. Hide Caption 1 of 9 Photos: Violent protests erupt in Kenya over presidential election results Odinga supporters duck for cover as they face off against Kenyan security forces in the Kibera slum of Nairobi. Hide Caption 2 of 9 Photos: Violent protests erupt in Kenya over presidential election results Kenyan security forces patrol in Mathare in Nairobi. Hide Caption 3 of 9 Photos: Violent protests erupt in Kenya over presidential election results A man brandishing a machete challenges police next to a burning barricade during clashes between police and protesters in the Mathare slum of Nairobi. Hide Caption 4 of 9 Photos: Violent protests erupt in Kenya over presidential election results People gather around the house of Steve George, a young boy allegedly killed by gunfire as he stood on the balcony of his house in the Mathare slum in Nairobi. Hide Caption 5 of 9 Photos: Violent protests erupt in Kenya over presidential election results A protester throws a stone during clashes with riot police in the Kibera slum in Nairobi. Hide Caption 6 of 9 Photos: Violent protests erupt in Kenya over presidential election results Kenyan security forces patrol the Kibera enclave of Nairobi. Hide Caption 7 of 9 Photos: Violent protests erupt in Kenya over presidential election results An injured man is carried in the Kibera slum of Nairobi. Hide Caption 8 of 9 Photos: Violent protests erupt in Kenya over presidential election results An Odinga supporter is treated after being shot during protests in the Kibera slum of Nairobi. Hide Caption 9 of 9

Amnesty International called on authorities to investigate reports that police shot dead demonstrators in opposition strongholds.

"Everyone has a right to peaceful protest and they must not be hurt, injured or killed for exercising that right," Muthoni Wanyeki, the organization's regional director, said in a statement.

The acting interior minister called reports of protester deaths "lies," saying most of the demonstrators are criminals taking advantage of the chaos.

The incumbent President appealed for peace after the result was declared Friday.

"Fellow Kenyans, elections come and go but Kenya is here to stay," he tweeted. "Let us always remember that we are all brothers and sisters."

Fellow Kenyans, elections come and go but Kenya is here to stay. Let us always remember that we are all brothers and sisters. pic.twitter.com/x9hboL9TMD — Uhuru Kenyatta (@UKenyatta) August 11, 2017

Extra security

More than 400 international election monitors deployed across the country to monitor voting, the tallying process and the post-election period.

JUST WATCHED John Kerry confident about Kenyan election process Replay More Videos ... MUST WATCH John Kerry confident about Kenyan election process 06:42

Former US Secretary of State John Kerry, who served as an election observer for the Carter Center, said while there were "little aberrations here and there," the election was not rigged.

"If anything was electronically fiddled with, there is a way to go back and absolutely ascertain what happened in the polling station," he said. "So, by paper ballots, there is a protection of each and every Kenyan's vote."

Extra security forces have been deployed in the capital of Nairobi, interior ministry spokesman Mwenda Njoka said.

Fears of violence

Allegations of vote-rigging have sparked concerns, with some Kenyans fearing ethnic clashes similar to those triggered a decade ago.

Though Kenya's last election in 2013 was mainly peaceful, the country plunged into widespread violence in the aftermath of the 2007 vote.

More than 1,000 people were killed in months of bloodshed following the 2007 election after Odinga -- defeated by then-President Mwai Kibaki -- claimed the vote was rigged.