You need to do both of the above things :).
1) Use "hidesprite" in the script to make it disappear momentaily
2) Set a flag that matches the Person ID of the pokeball event just afterwards to make the disappearance permenant.
Be careful with your flags, you may be using a temporary one. Check out
this tutorial for more information and recommended flags to use.