Laurent Lamothe's resignation comes after days of violent anti-government protests calling for elections and for both Lamothe and President Michel Martelly to step down.