It means there is a potential for danger.
Yes, it comes from the Spanish word "bronca" meaning a row or a fight. "Armar una bronca" means to kick up a fuss. Thus a horse that was wild and unbroken. Gringo cowboys adopted the word with a slight alteration.