I recently read that cucumber skin is an effective repellent for some ants:
Set out cucumber peels or slices in the kitchen or at the ants' point of entry. Many ants have a natural aversion to cucumber. Bitter cucumbers work best.
Source: Natural Insect Pest Control
See also: How to Use Cucumbers to Prevent Ants from Entering the Home
But when I tried it out they died instead. What made this happen?