Tbf it recognises the gun as a toy.
IDF has a long history of blowing up kids playing soccer on the beach, and shooting kids for throwing stones and let them bleed to death. It doesn’t really seem like they try to determine threat status.
Israeli Strike Kills Four Boys Playing on Gaza Beach

ABC News
They’re worse than I thought