Supreme Court judge Justice Mazahir Naqvi resigned