If safe turn the power connection off at the supply source e.g the power box where the main switches are. But do not attempt to turn the power off st the powerpoint switch (the source in which the electrical hazard is coming from).
Even after the power has been disconnected you shouldnt touch the person immediately after.