First of all this script is not activated on a photos page. It is written to work on "Blog, Music, Reviews and Links" items only (please read the description in the body of this post). So, you should not even see the delete link on the photos page.
The delete link added by this script looks like this:

As I said, this link does not even appear in a photos page, so you could not have clicked on the link generated by this script.