JOHANNESBURG -- A South African judge on Sunday ordered authorities to prevent Sudanese President Omar al-Bashir, who was in South Africa for an African Union summit, from leaving the country because of an international order for his arrest.
Sudanese officials, however, said al-Bashir had been assured by the South African government that he would be welcome during his visit.
Al-Bashir appeared for a group photo with other African leaders at the summit in Johannesburg on Sunday, wearing a blue three-piece suit, a tie and a smile as cameras flashed. The conference was scheduled to end Monday.
Rabie Abdel-Attie, a senior member of al-Bashir's National Congress Party, said in Khartoum that al-Bashir will stay at the meeting "until it ends."
South African Judge Hans Fabricius instructed authorities to prevent al-Bashir from leaving the country because he is wanted by the International Criminal Court.
He said border officials should enforce his decision pending a hearing on whether al-Bashir should be arrested, according to Caroline James, a lawyer with the Southern Africa Litigation Centre rights group. A court is expected to rule on Monday if al-Bashir should be handed over to the International Criminal Court to face charges of alleged genocide and human rights abuses.
Kamal Ismail, the Sudanese state minister for foreign affairs, told reporters in Khartoum that al-Bashir had received assurances from the South African government prior to his visit that he would be welcome and was expected to return to Sudan on schedule.
He said the court order seeking to prevent al-Bashir from leaving South Africa "has nothing to do with the reality on the ground there," adding that "until now things are normal and there is no threat to the life of the president of the republic."
The African National Congress, South Africa's ruling party, said the South African government granted immunity "for all (summit) participants as part of the international norms for countries hosting such gathering of the AU or even the United Nations."
The party urged the government to challenge the court order, saying African and Eastern European countries "continue to unjustifiably bear the brunt of the decisions of the ICC."
Even before Sunday's events, the African Union had asked the ICC to stop proceedings against sitting presidents and said it will not compel any member states to arrest a leader on behalf of the court.
Al-Bashir has travelled abroad before and local authorities had not detained him at the behest of the International Criminal Court, which is based in The Hague, Netherlands.
ICC prosecutor Fatou Bensouda has said South Africa is under a legal obligation to arrest al-Bashir and surrender him to the court. Her office has been in touch with South African authorities on the Sudanese president's reported visit.
If al-Bashir is not arrested, the matter will be reported to the court's assembly of states and the United Nations Security Council, which first referred the case of Sudan's Darfur region to the International Criminal Court in 2005, she said.
The U.S. State Department called on the "Government of South Africa to support the international community's efforts to provide justice for the victims of these heinous crimes," in a statement issued Sunday night.
The charges against al-Bashir, who took power in a 1989 coup, stem from reported atrocities in the conflict in Darfur, in which 300,000 people were killed and 2 million displaced in a government campaign, according to United Nations figures.
He has visited Malawi, Kenya, Chad and Congo in the last few years, all of which are International Criminal Court member states. The court doesn't have any powers to compel countries to arrest him and can only tell them they have a legal obligation to do it.
In March, the International Criminal Court halted proceedings against Kenyan President Uhuru Kenyatta after the prosecution said it did not have enough evidence against him. Kenyatta, who is attending the summit, was charged in 2011 as an "indirect co-perpetrator" in postelection violence that left more than 1,000 people dead in 2007 and 2008. He always maintained his innocence.
Kenyan Deputy President William Ruto is on trial for crimes against humanity in the election-related violence.
Associated Press writer Mohamed Osman contributed to this report from Khartoum, Sudan.