"An explosion hit as Prime Minister Abdalla Hamdok's car was driving by but thank God no one was hurt," said Ali Bakhit, his office director.
A cabinet official also confirmed to AFP that Hamdok had escaped an attack.
Images on state television showed at least two damaged vehicles at the site of the blast in the Kober district, northeast of the centre of Khartoum.
State TV reported that Hamdok's convoy was targeted but was currently "well and has been taken to a safe place".
The area was quickly cordoned off by the police.
State-run radio Omdurman meanwhile reported that automatic weapons were also used in the attack and that Hamdok was taken "to a hospital".
COMMENTS
Comments are moderated and generally will be posted if they are on-topic and not abusive.
For more information, please see our Comments FAQ