Prasanna Earnest of the CPI(M) resigned following a pact in the ruling Left Democratic Front