A Massachusetts resident tested positive for monkeypox, marking the first case in the United States this year, health officials confirmed Wednesday.