The Islamic State has claimed responsibility for the bombing of a French Consulate-led ceremony in a non-Muslim cemetery in Saudi Arabia.

The group said it had carried out the attack to protest the sacrilegious actions of France against Islam.

The bomb didn't result in fatalities but injured at least three people, The New York Times reported. Several diplomats and French officials were present at the event to commemorate the 102nd anniversary of the armistice that ended the First World War. Several countries that were part of the war commemorate the event each year.

The bombing is the latest in a series of attacks against the French over the publication of a cartoon of the Prophet Mohammed. Depictions of the prophet are considered to be sacrilegious in Islam.

Among those that were in attendance were French Senator Nathalie Goulet and several diplomats from France and the Gulf countries. Saudi officials said that an investigation into the attack is now underway. An official from Greece, who did not want to be identified, claimed that one of those that were injured was from his country.

Saudi state television confirmed in its report that the explosion was from an improvised explosive device. It assured the public that the security situation was now "stable" and "under control."

In a separate attack on a Greek national and a Saudi security officer the UK said that the Greek national had suffered minor injuries.

In a joint statement, the U.S., France, Greece, Italy and the UK condemned the bombing - calling it a "cowardly" attack.

The French foreign ministry issued a warning to citizens in Saudi Arabia to be on "maximum alert. The notice warned citizens to stay away from gatherings and to be extra cautious when moving around the country.

Last month, a Saudi citizen attacked a guard at the French consulate in Jeddah. The incident occurred on the same day a man killed three people with a knife in a church in France.