Submillimeter Pulsations from the Magnetar XTE J1810-197