Nonequilibrium Bethe-Salpeter equation for transient photoabsorption spectroscopy