If I meet this kind of people:
First, I give chance.
Second, If it doesn't work, I warn him again.
Third, if still don't listen, gather your remaining of the
teammates and ask them for opinions whether to kick him.
If they say ok (which I see no reason why they would refuse), then
proceed to inform your lecturer and kick him out.
Tell your lecturer why u want him out with your teammates behind
you supporting your stand. Bring out previous project works as
example (e.g. he never do this do that).
You do not have to worry about the sms he using to threaten you.
Once u report your situation to your lecturer, everyone understand.
If some of your classmates choose to stand by his side, be fine
with it, let them experience what u experienced and naturally they
will stand at your side. 
Remember, your group did the hard work, not him. Why let him
leech?
Since you already did the first and second advice, u can go proceed
to the third advice. No need give mercy to this kind of scumbag,
leech already not ok still wan to threaten.