President Nicolás Maduro has accused the United States of a coup attempt following the contested election.