Indicting Sudan's president over alleged war crimes in Darfur could put peacekeepers at risk, a senior UN official warns.