Supersymmetric M-brane Solution in a Dynamical Background