Former Kashmir chief minister released after 8 months