Thanks for the feedback! Those enemies are actually explosive barrels. They get launched at you when you touch the detector which is the red laser-like wall. You basically die of brute force if the barrel hits you.
You can also jump on the barrels while they are mid-air (you use it to jump over a wall).
I hope this helps! :)