Malala Yousufzai
Undated file photo of Malala Yousufzai, a 14-year-old schoolgirl, who was wounded in a gun attack in Swat Valley northwest Pakistan

A team of doctors on Wednesday successfully operated and removed a bullet from a 14-year-old Pakistani school girl, who was shot by Taliban gunmen in Mingora in Pakistan's Swat Valley.

According to the Associated Press, Malala Yousafzai is being treated in a military hospital in Peshawar by the army and civilian surgeons. She was shot in the head and neck on Tuesday while she was on her way home from school in Swat Valley.

Yousafzai was known for promoting education for girls and for speaking out against the atrocities committed by Taliban.

The militants attacked the young activist and injured two girls. They said they targeted the teenage girl because she promoted "secularism".

A spokesman for the Islamist militant group, Ehsanullah Ehsan, told BBC Urdu that Yousafzai would not be spared if she survived.

The doctors at the hospital in Peshawar said that they were forced to operate Yousufzai at around 2 am after she developed swelling in the left portion of her brain. They took three hours to remove the bullet from her body and finished the operation at around 5 am on Wednesday.

"She is still unconscious and kept in the intensive care unit," Reuters quoted Mumtaz Khan, head of a panel of doctors taking care of Yousufzai in a military hospital in the northwestern city of Peshawar, as saying.

Relatives of the activist said that she appeared to be doing well after the operation.

Yousafzai's father Ziaudduin said that the surgeons were confident by a CT scan taken after the operation. Although she was unconscious, she moved her hand slightly after coming out of surgery, The Guardian said.

Yousafzai came into limelight in 2009 when she was just 11 years old by writing a blog for BBC Urdu about her life under Taliban militants in her hometown. Last year, she received the Pakistani National Youth peace prize.