A simple grammar check and explanation for the sentence about electric rays hunting by shocking fish, suitable for a 6-year-old.
The sentence you wrote is mostly correct! Here's the sentence:
Electric rays hunt by shocking the approaching fish with electricity.
It means that electric rays catch fish by giving them a shock with their electricity. The grammar is good, but if you want it to sound a little smoother, you could say:
Both are correct, but your original sentence is clear and gramatically correct!