A security source said on Monday that an improvised bomb exploded outside the headquarters of the public prosecutor in the Libyan city of Benghazi causing material damage but no fatalities.