Nobel peace laureate Malala Yousafzai returned to Pakistaninfo-icon on Thursday, officials said, in her first visit to her native country since she was shot in the head by a Taliban gunman for advocating education for girls in 2012.

Precise details of her itinerary have been "kept secret in view of the sensitivity surrounding the visit," a government official said of the trip, which is expected to last four days and include a meeting with Prime Minister Shahid Khaqan Abbasi.

Accompanied by her parents, the 20-year-old was escorted through Islamabad's Benazir Bhutto International Airport under tight security, according to still photographs broadcast on local television.

Ms Yousafzai has become a global symbol for human rightsinfo-icon and a vocal campaigner for girls' education since a gunman boarded her school bus in the Swat valley on October 9, 2012, asked "Who is Malala?" and shot her.

She was treated for her injuries in the British city of Birmingham, where she completed her schooling.

Residents of Malala's native Swat valley, where she lived until the shooting, said they were happy to see her return.

"I had not imagined that she would ever come (back)," Rida Siyal, a student who said she had been a "good friend" of Malala's before the shooting, told AFP.

"(She) defeated the dark force of fear. We are delighted to see her back," she said.

Ahmad Shah, who said he was a friend of Malala's father, called her a "symbol of courage", adding: "She should have returned home much earlier".

Many Pakistanis took to Twitterinfo-icon to express delight that the campaigner had returned for the visit, despite ongoing security fears.

But she faces intense criticism from some Pakistanis, including hardline Islamists as well as members of the conservative middle class who support education for girls but object to airing the country's problems abroad.

One leading Pakistani journalist, Hamid Mir, issued a plea for opposition politicians and commentators to exercise restraint when talking about the visit.

"International mediainfo-icon is highly focused on her return and this (bad language) will damage Pakistan's image," he said.

Last summer, she said she was "so excited" after finding out  that she had secured three As in her A-levels that she needed to take up a place to read Philosophy, Politics and Economics (PPE) at Lady Margaret Hall, Oxford.

As the first term began at university in October, she tweeted a picture of her laptop and textbooks, writing: "5 years ago, I was shot in an attempt to stop me from speaking out for girls' education. Today, I attend my first lectures at Oxford."

One of her heroes, the former Pakistani president Benazir Bhutto, is an alumni of the college, which was the first in Oxford to admit women.

During her childhood in the Swat Valley, Yousafzai wrote a blog under a pseudonym about life under the Taliban occupation, which included a ban on girls going to school.