Coherent quantum control of two-photon transitions by a femtosecond laser pulse