Jammu and Kashmir Deputy CM Nirmal Singh resigns