Court denies boy's application for bail