Coherent control of tunable entanglement between two resonators in superconducting circuits