Three African countries ruled by military juntas have announced that they will pull out of the International Criminal Court, accusing it of “selective justice.”Burkina Faso, Mali, and Niger — three countries in Africa’s arid Sahel region whose governments were overthrown by military coups in recent years — said in a statement released on Monday that the court was run by a “closed circle of beneficiaries” that acted with “international impunity.”The I.C.C. was created more than two decades ago in Italy, where 120 states adopted the Rome Statute, the legal basis for the court. The United States never joined, for fear that it would eventually try Americans. The statement said the three countries would use internal methods to ensure peace and justice in their nations, and that they would protect human rights and fight against impunity.