Manuel Merino announces resignation after a night of protests demanding his removal in which two died, dozens wounded.