Court releases HDP deputy linked to terror probe