A suicide bomber on a motorcycle has killed at least 31 people outside a busy polling station in the Pakistani city of Quetta, casting a dark shadow on a historic day as people cast their votes in national elections.
The attack in the capital of Baluchistan province underlined the difficulties this majority Muslim nation faces on its journey towards sustained democracy, as it attempts to elect its third consecutive civilian government.
The bombing also wounded 35 people, with several reported to be in critical condition, raising concerns the death toll could rise.
Images showed a smiling Mr Khan with his ballot paper laid out in front of him as he marked the ballot.
Voting for a national assembly, the lower house of parliament and four provincial assemblies followed a rancorous campaign marked by widespread allegations of manipulation.
The uncertainty of the outcome of the vote – no single party appears assured of a simple majority win – could also lead to a prolonged post-election period that would hamper the forming of the next government.
A witness to the attack in Quetta, Abdul Haleem, who was waiting to cast his ballot, said he saw a motorcycle drive into the crowd of voters just seconds before the explosion. He said his uncle died in the attack.
No-one immediately claimed responsibility for the bombing but local officials were quick to blame the Islamic State group (IS).
IS claimed responsibility for that attack, though Baluchistan has seen relentless attacks, both by the province’s secessionists and Sunni militants who have killed hundreds of Shias living there.
In recent years, the IS affiliate in the region has emerged as a major force behind violence, often using local Sunni radicals from the outlawed Lashkar-e-Jhangvi to carry out its attacks.
The leading contenders in the election are former cricket star Imran Khan and his right-of-centre Pakistan Tehreek-e-Insaf Party, and the right-of-centre Pakistan Muslim League, the party of disgraced prime minister Nawaz Sharif, who is in jail serving 10 years on corruption charges. His younger brother Shahbaz Sharif has taken control of the party.
The third-largest party in the running is the left-leaning Pakistan People’s Party, headed by Bilawal Bhutto, the son of late prime minister Benazir Bhutto, who was assassinated by the Pakistani Taliban, a group she had vowed to eradicate.
Election officials say more than 11,000 candidates are vying for 270 seats in Pakistan’s lower house of Parliament and 577 seats in four provincial assemblies.
Voting for two parliamentary seats and six seats in provincial assemblies has been postponed due to attacks on candidates or disqualifications. The first results are expected early on Thursday.
There are more than 105 million eligible voters in Pakistan, 59 million men and 46 million women. Pakistan’s election commission has reminded candidates their elections will be nullified if the female voter turnout does not reach 10%.