A Reinforcement Learning Algorithm for Training a Spiking Neural Network Agent