One of 12 men accused of murdering a teenager admitted his role in the killing during a phone call after a violent ambush in a park, a judge has heard.