Chaudhry Zulfikar was shot at least 13 times as he drove to court in the capital Islamabad.
He then lost control of his car, which hit a woman passer-by and killed her, police said.
Mr Zulfikar was also prosecuting militants linked to the 2008 terror attack in the Indian city of Mumbai.
Although the motive for the killing was unclear, the prosecutor's involvement in the two high-profile cases is likely to be scrutinised closely.
More top news
Bradford City co-chairman Mark Lawn says he would like to face Manchester United in the FA Cup for his wife Yvonne who is battling cancer.
Footage of the Auschwitz death camp taken from the air shows the sheer scale of the infrastructure used by the Nazis during the Holocaust.
After earning a draw against Manchester United in the FA Cup, club chairman Dave Doggett says the money made will be spent on facilities.