The man, identified as Mohan Patel, died while he was putting up the national flag on an iron rod which came in contact with a power supply line on the roof of a building housing the grocery shop, Barwaha police station in-charge Prakash Vaskale said.