The cut to the foreign aid budget announced this week will “cost lives and create chaos”, the last Labour first minister in Scotland has claimed.