KABUL, Afghanistan — A suicide bomber attacked an armored car carrying a prominent Afghan women’s rights leader and member of Parliament in Kabul on Sunday morning, killing three people and wounding 32 others, Afghan officials said.

The lawmaker who was apparently the target of the attack, Shukria Barakzai, survived the blast, which occurred several hundred feet away from the Parliament building, her destination at the time.

Ms. Barakzai, 42, had once helped run underground schools for girls during the Taliban era. She quickly emerged as a public figure in Afghanistan not long after the American-led coalition toppled the Taliban government.

A member of the assembly that approved Afghanistan’s Constitution in early 2004, she was elected to Parliament the following year and re-elected in 2010.