A 17-year-old US teen will be charged as an adult for allegedly helping gunmen attack a San Diego mosque.