Sam Nujoma, the anti-apartheid activist who served three terms as the first president of Namibia from 1990 to 2005, has died at the age of 95.