Controlled single-photon emission from a strongly coupled atom-cavity system