Former South African president "passed on peacefully in the company of his family," said South African president.