If your weapon switches to the red button and you shoot, you will take damage. this is probably the reason you were taking damage. I had the same problem but it stopped after I realised this.
this game was really fun and was well polished and looked great. I always found myself thinking about where I should move to and where I should stand to be in the best position to shoot the red guys. great game!