This type of barrel will simply explode when it has incurred a particular amount of damage. It is a sizable burst so anything with several feet of it will get injuries. Anyone nearby it will likely be killed.
Borderlands Pre-Sequel: Explosive Barrel
From Orcz