South Africa’s centurion accepted the reality of sport after Pakistan beat them off the last ball, but he was still disappointed