Cooperative two-photon interaction with nonclassical light