The First Minister was booed by some in the crowd while he addressed the vigil outside the Scottish Parliament.