Observation of hard scattering in photoproduction at HERA