Simulations of Magnetohydrodynamic Waves Driven by Photospheric Motions