Police have fired tear gas and rubber bullets at anti-government protesters in Nicaragua, injuring two people.