Transmission probability through a Lévy glass and comparison with a Lévy walk