Challenges and lessons from a primary care intervention in a Brazilian municipality