ISLAMABAD — Despite a bloody campaign marred by Taliban attacks, Pakistan holds historic elections Saturday pitting a former cricket star against a two-time prime minister once exiled by the army and an incumbent blamed for power blackouts and inflation.

The vote marks the first time in Pakistan's 65-year history that a civilian government has completed its full term and handed over power in democratic elections. Previous governments have been toppled by military coups or sacked by presidents allied with the powerful army.

Deadly violence struck again Friday, with a pair of bombings against election offices in northwest Pakistan that killed three people and a shooting that killed a candidate in the southern city of Karachi. More than 130 people have been killed in the run-up to the vote, mostly secular party candidates and workers. Most attacks have been traced to Taliban militants, who have vowed to disrupt a democratic process they say runs counter to Islam.

The vote is being watched closely by Washington since the U.S. relies on the nuclear-armed country of 180 million people for help in fighting Islamic militants.

The rise of former cricket star Imran Khan, who has almost mythical status in Pakistan, has challenged the dominance of the country's two main political parties, making the outcome of the election very hard to call.