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
The military had hoped for a smooth transition from the old leader, but Mugabe looks like he means to stay put.
Self-driving cars could be tested on UK roads as early as 2021 under plans to be unveiled by Chancellor Philip Hammond.
The Prince of Wales visited areas recovering from Hurricane Irma, which battered the British Virgin Islands in September.