The Liverpool forward was introduced with a quarter of an hour remaining in Dakar, shortly after the visitors had broken the deadlock, and equalised for his country three minutes before the end of normal time with a neat run and finish.
Moussa Konate then completed the quickfire turnaround for the home team by netting a second in stoppage-time.