The dwarf mongoose eats insects, small lizards and snakes as well as eggs. You probably remember Rudyard Kipling’s story of “Rikki-Tikki-Tavi, the mongoose that saved a family from a cobra snake; although that story took place in India.
Thus guy was up in a tree when we passed by. Probably looking for insects to snack on.
Next are the Canine species found in Africa