Scotland’s first minister John Swinney also posted his condolences on social media