I wouldn't worry that the engoine was running or not as the power lead is alway connected to the battery so will alway be live, i normally take the fuse out in the engine bay before touching the cables.
Not sure what could be causing the humming though, maybe the amp itelf has got damaged.
Not sure what could be causing the humming though, maybe the amp itelf has got damaged.