A favourite of the liberal left, the Massachusetts senator had been a frontrunner in the Democratic field.