Many nations & operatives wear the black hats. It's just that the USA would have folks believe they are always doing the right thing.
The CIA (and MI6) led a coup d'etat against Iran's leader Mohammad Mosaddegh in 1953. Mosaddegh had nationalized Iran's oil industry similar to what Chavez did in Venezuela. Well there goes the big oil company's profits, so they had him taken down.
They did the same thing with Chile's Salvador Allende & had the (USA's puppet) Pinochet installed as leader. Some say Allende killed himself, others say he was assassinated by the CIA.