The York County solicitor says Rock Hill police officers were justified in shooting a 15-year-old robbery suspect who allegedly pointed a gun at them.