Generation of Electromagnetic Fields in String Cosmology with A Massive Scalar Field on the Anti D-Brane