Declan Rice scored a late equaliser to secure a 2-2 draw for Arsenal against Bayern Munich in a thrilling Champions League encounter.