Simply put, the cast ray doesn't pick any objects.
You can use the
HitUID
If Ray intersected is true, the UID of the instance that was the first obstacle the ray intersected.
expression in the 'Ray Intersected' event to identify the object hit. In a subevent, use the Sprite - Pick by unique ID condition to pick Object.Lineofsight.HitUID, and destroy object.