Shell apologized for an "inappropriate relationship with a woman in the company," and said he was "truly sorry" for letting down colleagues.