Disorder-induced modification of the transmission of light in a two-dimensional photonic crystal