Luis Diaz scored a powerful strike from the edge of the box to give Bayern Munich the lead against 10-man Real Madrid in their Champions League quarter-final.