At least 57 people have been killed and more than 119 injured after a suicide bomber blew himself up outside a voter registration centre in the Afghan capital Kabul, in the most serious attack yet on preparations for elections scheduled for October.
The so-called Islamic State group has claimed responsibility for the attack on a project of key importance to the credibility of Afghan President Ashraf Ghani's government, which has been under international pressure to ensure long-delayed parliamentary polls take place this year.
Interior Ministry spokesman Najib Danesh said a bomber on foot approached the centre where officials were issuing identity cards as part of the registration process for around 10 million voters across Afghanistan.
Registration began this month.
We need your consent to load this rte-player contentWe use rte-player to manage extra content that can set cookies on your device and collect data about your activity. Please review their details and accept them to load the content.Manage Preferences
Mr Ghani issued a statement condemning the attack and said it "cannot divert us from our aims or weaken this national democratic process".
A spokesman for the Ministry of Public Health said at least 57 people were confirmed dead and 119 wounded.
He said the total number of dead could still climb.
The explosion destroyed cars and shattered windows in nearby buildings, leaving rubble strewn across the blood-stained street.
It was the deadliest blast in Kabul since about 100 people were killed in January by a bomb concealed in an ambulance, and it came after repeated warnings that militants could try to disrupt the election process.
Tadamichi Yamamoto, the senior United Nations official in Afghanistan issued a statement condemning the attack.
"Compounding the callous disregard for the lives of civilians, the killing appears to be part of a wholly unacceptable effort by extremists to deter Afghan citizens from carrying out their constitutional right to take part in elections," he said.
After weeks of relative calm, the blast took place in Dasht-e Barchi, an area of western Kabul inhabited by many members of the mainly Shia minority, which has been repeatedly hit by attacks claimed by IS.
According to UN figures, more than 750 people have been killed or maimed in suicide attacks and bombings by militant groups during the three months to March ahead of an expected start of the Taliban's normal spring offensive.
Afghanistan's international partners have insisted that the elections should be held this year before a presidential vote due in 2019, although there has been widespread scepticism that they will go ahead.
More than 7,000 voter registration centres have been set up across Afghanistan to handle about 10 million registrations.
Officials had pledged tight security to ensure the process proceeded safely.
The voter registration process, designed to reduce the electoral fraud that has marred past ballots, began this month but there have already been several attacks.
A separate roadside bomb near a registration centre in the northern city of Pul-i Khumri killed six members of a family and wounded three others, although there was no indication that the incident was directly linked to the Kabul attack.
Last week, two police officers in the eastern city of Jalalabad were killed outside a voter registration centre, while a voter centre in the central province of Ghor was burned down last week and electoral officials briefly abducted.
The vote could be postponed to next year if registration of voters, many of whom do not have national identity cards, is not completed before winter arrives.
Parliament is still sitting three years after its term officially expired and further delays would seriously weaken already fragile confidence in the political system.
There was an additional scare when a NATO military convoy in Kabul accidentally hit and injured a child and triggered a protest. Police dispersed the crowd by firing into the air.
A NATO spokesman said the child had been taken to hospital and was in a stable condition.