The workers were constructing a toilet at a school next to the temple in Faridpur’s Madhukhali Upazila
Police said the incident occurred on Tuesday morning at a village in Dharmapasha Upazila.
The victims have been identified as 45-year-old Ranjit Sarkar, his father Jagadish Sarkar, wife Rita Sarkar and his 10-year-old daughter Sonali Sarkar.
Quoting witnesses, local police OC Mazharul Islam said that Ranjit got stuck to a snapped live electric wire at the courtyard of his home.
The others were electrocuted when they came to rescue him.