When activated, Electric Fence traps let off a high pitched noise, drawing infected towards them. They then activate, electrocuting any infected that are standing on the electrified fences. This will typically kill common infected, and will stall Volatiles until the trap deactivates.
To immediately reuse the trap: go to the power box with the red light and use it. Kyle will reactivate the trap and it can be used again.