KABUL, Afghanistan  A suicide bomber attacking a pro-government militia commander detonated his bomb-laden vest in a southeastern provincial capital, Gardez, on Thursday, and witnesses said he killed 10 people and wounded 27, most of them civilians. Also on Thursday, the governor of a neighboring province survived a bomb attack.

In Gardez, capital of Paktia Province, witnesses said the suicide bomber walked up to the commander, Nasir Paray, who leads one of the many pro-government armed groups in the area, and detonated his vest. The commander died in the blast, which also killed four children.

After the explosion, witnesses said, the only parts of the bomber to be found were his legs.

In neighboring Khost Province, the governor, Tahir Khan Sabari, suffered minor wounds after being showered by broken glass when a bomb exploded outside his window during a meeting in his compound in the provincial capital. The bomb was hidden under a pile of trash outside the wall of his compound. Six other Afghan officials were wounded.

Khost is the province where, just over a week ago, a Jordanian suicide bomber killed seven Americans working for the Central Intelligence Agency. The C.I.A. officers were hoping to recruit the Jordanian to help them gather intelligence on Al Qaeda’s leaders across the border in Pakistan.