Nicola Sturgeon and Jim Murphy said Scotland "stands in solidarity" with the people of Pakistan as they signed a book of condolence for the victims of Tuesday's school massacre.

The First Minister and the Scottish Labour leader visited the Consulate of Pakistan in Glasgow to pay their respects after the shooting of 132 children and nine teachers at the Army Public School in the city of Peshawar.

The Pakistani Taliban has claimed responsibility for the murders.

Ms Sturgeon wrote: "My deepest condolences on the dreadful loss of life in such a horrific attack.

"The thoughts and prayers of the Scottish Government and the Scottish people are with the people of Pakistan - and the wonderful Pakistan community here in Scotland - at this saddest of times.

"We stand with you in solidarity."

Mr Murphy wrote: "The entire nation of Scotland grieves for the terrible loss in Pakistan.

"We will stand with you in your moment of heartbreak."

The Labour MP said later: "I think it was important to be here because all of Scotland is just stunned by the news of the slaughter of so many innocents.

"Today is about saying to the people of Pakistan that the people of Scotland stand with them."

It emerged on Wednesday that Glasgow SNP councillor Jahangir Hanif lost two relatives. Two of his nephews each had a son killed in the attack which has been condemned by global leaders.

Prime Minister David Cameron described the assault targeting children as ''a dark, dark day for humanity''.