While the dispute was going on, some shepherds came up, bringing with them a man whose hands were bound behind his back.
Source: New York State Testing Program: ELA Common Core Sample Questions
Is bringing an adjectival participle phrase that modifies shepherds? If not, what does it modify, or what is it anyway?
Edit: Related: Parts of Speech of: come+ verbing