Sudan's security and intelligence chief resigns, as new leader lifts night curfew