The Islamic State group said it was behind a deadly car bomb attack on Italy's consulate in the Egyptian capital Saturday, and warned Muslims to stay away from such places.
Health ministry spokesman Hossam Abdel Ghaffar said the powerful early morning blast that shook central Cairo killed a civilian and wounded nine people, including policemen and passers-by.
"Soldiers of the Islamic State in Cairo were able to detonate a parked booby-trapped vehicle laden with 450 kg (990 pounds) of explosives at the headquarters of the Italian consulate," the SITE Intelligence Group quoted an IS tweet as saying.
"We advise Muslims to stay away from these security dens, because they are legitimate targets for strikes of the mujahedeen," the statement added.
It was the first attack on a foreign mission in Egypt since jihadists began a campaign against the country's security forces two years ago following a crackdown on Islamists.
The explosion wrecked the facade of the building, part of a large complex that also includes a social club and a school, and damaged around 50 other buildings.
The consulate, near the prosecutor's office and supreme court in central Cairo, had been closed for the weekend.
Saturday's attack comes less than two weeks after suspected militants assassinated Egypt's top prosecutor in a Cairo car bombing.
The mangled wreck of a vehicle was strewn on the street outside the consulate.
The Italian consul arrived at the scene as condemnations poured in from Rome.
"Italy will not let itself be intimidated," said Foreign Minister Paolo Gentiloni in a tweet, adding that there had been no Italian casualties.
He later told a news conference that the consulate had been the intended target.
- Italy 'intends to respond' -
"We intend to respond firmly but also soberly... without alarmism," Gentiloni added.
Prime Minister Matteo Renzi spoke to Egyptian President Abdel Fattah al-Sisi and said the two countries will stand together "in the fight against terrorism and fanaticism".
Prime Minister Ibrahim Mahlab said the battle against extremism has become the whole world's responsibility.
"Countries must coordinate their efforts to confront terrorism," he told reporters.
Militants have carried out scores of attacks since the army, then led by Sisi, overthrew Islamist president Mohamed Morsi in July 2013.
The attacks have killed hundreds of policemen and soldiers, mostly in the Sinai Peninsula.
Signup to our newsletter and follow us on Facebook and Twitter!
Diplomats had told AFP they had been warned by police months ago that embassies could be targeted, but it was not clear whether this was based on specific intelligence.
At least one Western embassy had been relocated over security concerns.
The attack was also denounced by EU foreign affairs chief Federica Mogherini and France.
"Once again Egypt is under attack, once again Europeans have been hit by terrorists," Mogherini said in a statement.
"We stand by the Egyptian authorities in their efforts to fight terrorism and bring the perpetrators of this attack to justice."
In Sinai, jihadists loyal to IS in Iraq and Syria launched a wave of attacks on July 1 that killed at least 21 soldiers.
IS, which controls parts of Iraq and Syria, has called on its affiliates elsewhere to attack Western targets.
- Uproar over new law -
The bombing comes with the government set to approve an anti-terrorism law that has sparked uproar among journalists and rights activists.
The new legislation appears to grant police and soldiers impunity when carrying out "anti-terrorism" operations, and stipulates death sentences for the founders of vaguely defined "terrorist" groups.
Five-year jail terms could also be meted out for promoting "terrorism" on social media.
The draft law would ban independent reporting of militant attacks, stipulating a two-year prison sentence for journalists who contradict death tolls in official statements.
The cabinet has said it would reconsider that provision following a media outcry.
Rights groups say freedoms have been trampled under Sisi's administration.
He won elections last year, pledging to wipe out the militants and Morsi's blacklisted Muslim Brotherhood.
Sisi had overseen a crackdown that killed at least 1,400 people, mostly Islamist protesters during the dispersal of sometimes violent protests.
Thousands have been jailed, including secular dissidents, and hundreds sentenced to death in mass trials, although most have won retrials.
The crackdown initially brought international pressure on Sisi, especially from the European Union, before giving way to support as he positions himself as a front line opponent of regional jihadists.
Sisi is widely popular in Egypt, where many have demanded a strong leader who can restore stability after more than four years of turmoil following the 2011 uprising that overthrew president Hosni Mubarak.