Five others given terms ranging from five years to life for organising terror group and endangering security