Court hears teenager died from gunshot wounds