The Latest on the conflict in Afghanistan (all times local):

8:15 p.m.

Afghan president Asharf Ghani has accepted the resignation of the country's national security adviser, Mohammed Haneef Atmar, and replaced him with Afghan Ambassador to the U.S. Hamdullah Mohib, according to government officials.

A statement from the presidential palace on Saturday said Atmar's resignation has been accepted and that Mohib has been appointed as the new national security adviser.

Haroon Chakhansuri, Ghani's spokesman, also confirmed Mohib's new appointment. Mohib also currently serves as the non-resident ambassador to Mexico, the Dominican Republic, Argentina and Columbia.

___

7:05 p.m.

An Afghan official confirms that the country's national Security Adviser, Mohammed Haneef Atmar, has resigned from his position.

Qader Shah, spokesman for the National Security Adviser's office, confirmed Atmar's resignation saying he would provide more details at a later time.

Atmar had previously served as the interior minister under the former president, Hamid Karzai.

___

12:10 p.m.

At least two people were killed and four others wounded Saturday when a suicide bomber detonated his vest full of explosives near the office of the Election Commission in eastern Nangarhar province, officials said.

Attahullah Khogyani, spokesman for the provincial governor, said the wounded were brought to the regional hospital in the capital city Jalalabad with one in critical condition. He said the casualty count would likely rise.

Doctors were trying to save the lives of the wounded, said Inamullah Miakhail, spokesman for the public health director in Nangarhar.

The attack happened when supporters of a candidate for parliament who was rejected by the Election Commission gathered to protest near the commission's office, said Khogyani. Several vehicles were damaged in the attack, he added.

The attack came as several tents belonging to protesters near the main Election Commission office in the capital Kabul were removed earlier Saturday by police after receiving threats of attacks, according to security officials.

No one has claimed responsibility for the attack in Nangarhar, but both an Islamic State group affiliate and Taliban insurgents are active in eastern Afghanistan, especially in Nangarhar.