I would assume you are free to hit anything if that target is already gone. If you were unable to shoot any other target, it should be written as "the unit may not fire at any other unit in the shooting phase" ... or whatever the wording in the BRB for shooting then charging is.