Claude LeRoy resigned as coach of Congo Brazzaville just hours after securing a place for the country in the final of qualifying for the World Cup.