A 17-year-old boy is accused of attempted murder and will appear at court later.