The fire attack can hurt teammates?!

I have been occasionally been hurt well on the same team as him by the fire is this a bug?

Never happened to me. Probably you got it by a minion, a turret, or a enemy.