Time-Optimal Control of a self-propelled particle in a spatiotemporal flow field