Quantum trajectories for a system interacting with environment in a single-photon state: Counting and diffusive processes