John Swinney was booed by a furious crowd as he spoke at an event at Holyrood to mark the second anniversary of the October 7 atrocities.