The ping
tool uses ICMP packets, which are not supported by Tor, and therefore can't be sent from within Tails. (Tor only supports only TCP as its transport layer protocol.)
For TCP-based alternatives, you could take a look at this thread. Note that to install any additional software on Tails, you'd first need to ensure that an admin account has been created.