LONDON — The father of a teenage Pakistani activist shot in the head by the Taliban for advocating girls’ education has been given a diplomatic post in the U.K.

Malala Yousufzai has been recovering at a hospital in Birmingham, England, after she was shot in October in Pakistan. The Taliban has vowed to target her again.

Pakistan’s High Commissioner to Britain, Wajid Shamsul Hasan, confirmed a BBC report Wednesday saying that Malala’s father, Ziauddin, has been appointed Pakistan’s education attaché in Birmingham.

The position — with an initial three-year commitment — virtually guarantees Malala will remain in the U.K.