In response, India skipper Virat Kohli scored 67 while South African batsman AB de Villiers remained unbeaten on 59 as Royal Challengers completed the win in the final over for their first victory of the season.
Gayle, who returned to the West Indies ODI side for the recent series against England, is set to retire from one-day international cricket after taking part in the World Cup in England and Wales starting on May 30.
Twice winners West Indies, who appointed Floyd Reifer as their new interim head coach and also overhauled their selection panel on Thursday, open their World Cup campaign against Pakistan in Nottingham on May 31.
(Reporting by Shrivathsa Sridhar in Bengaluru, editing by Pritha Sarkar)