They inspected the bag with an X-ray photograph. All else being equal, the smaller nuclei of lower atomic number elements scatter fewer X-rays and therefore are more radiolucent (transparent to X-rays). Since diamonds are pure carbon (Z=6), they show up much less brightly than an oxide (Z=8) of zirconium (Z=40).
Here’s a comparison:
