Police investigate pellet gun attack