The Algerian , Djamel Mustafa was sentenced to five years in prison for his role in planning attacks and supporting a terrorist group .