"The U.K. stands shoulder to shoulder with Pakistan in its fight against terrorism," British Foreign Secretary William Hague said in a statement sent to reporters. "Malala's bravery in standing up for the right of all young girls in Pakistan to an education is an example to us all."
Late Sunday night, more than 100 Taliban militants attacked a police station in the small town of Matni, 20 kilometers (12 miles) south of the main northwest city of Peshawar. The heavily armed militants killed six policemen, including two who were beheaded, said police officer Ishrat Yar.
The police engaged the militants in a gunbattle that lasted for several hours, but the insurgents escaped after burning the police station and four police vehicles, said Yar.
One of the policemen who was beheaded was a senior official who commanded several police stations in the area and was leading reinforcements against the attack, said Yar. Another 12 policemen received gunshot wounds.
A Pakistani Taliban spokesman, Mohammad Afridi, claimed responsibility for the attack, saying the police were targeted because they had killed several militants.
The Taliban have carried out hundreds of attacks throughout Pakistan but the attacks rarely include such a high number of militants as in the assault on the police station in Matni.
Associated Press writers Asif Shahzad in Islamabad, Ishtiaq Mahsud in Dera Ismail Khan, Pakistan, Riaz Khan in Peshawar, Pakistan, and David Stringer and Robert Barr contributed to this report.