The 15-year-old boy spent the night in police custody after he allegedly fired an air gun at another student at Rose Bay Secondary College.