If so why is the difference? I've tried to google it but nothing relevant was found.
In the general case probably not, although I'd imagine that the authorities running each TLD will have varying levels of technical and operational security, so your domain may be safer with some than others.
One specific case to note however is the prospective .secure TLD whose goal is specifically to provide a secure environment both in terms of their security and the security of sites within the .secure TLD
From the point of view of the specification for domain names, no. The TLD identifiers are arbitrary strings per the specification document for domain names, RFC 1034. There are security measures that can be taken to address specific services hosted from a domain, but nothing inherently secure or insecure about a given TLD.
There may be some empirical differences in which TLDs are hit by botnets (if they are in fact hitting domains rather than IPs), but this difference is going to be a moving target and I'm not aware of any frequency analysis that's been done on attacks on TLDs.
Edit: I should also note that the administrator of each TLD is able to enforce their own requirements for registering a domain within that TLD. This provides a certain level of authentication for names within that domain, but I am unaware of any requirements that address technical security requirements for registrants.