Brooks was ejected for the foul, but Memphis went on to win