You have read home theatre manual about playing sound from external device.
You doesn't need to connect home theatre to tv at all as you have get video from apple tv.
Connect video output from apple tv to tv(may carry sound along) and optical cable from apple tv to home theatre.
That will do. You can mute sound of tv(in case hdmi carry sound along) or using other function(on samsung ) and hear from home theatre sound from speakers.