A farmer died after stepping on an electric trap allegedly set up to deter wild boars in a maize field in Mogilicherla village of Warangal district, triggering protests by family members who demanded compensation and action against the neighbouring farmer.