The blast took place as the vehicle carrying the guards was passing near the UNDP HQ in the Somali capital Mogadishu.
There was no immediate claim of responsibility for the blast, but Al-Shabab militants have carried out a string of similar attacks.