Sudan's intelligence chief resigns