Former South African leader criticized for supporting Morocco in regional dispute