When she does it, go upto her and tell her about what will happen to the society if he does so [like outbreaks and epidemics] if she litters waste like this. Also encourage her to pick it up and put it in the dustbin.
If you want a dialogue:
"Hey, [friend's name]! Don't do that! It's not good for the society! Please pick it up and put it in the dustbin."