Casimir friction between a magnetic and a dielectric material in the nonretarded limit