When necessary, in cases where a delinquency charge against a child would otherwise constitute a felony, the circuit court may direct that such child be kept in proper custody until an information or complaint may be filed against him as in other cases under the criminal laws of this state.
SDCL 26-11-3