Peru's president has vowed to take action after two people were killed during protests.