The jury may find the defendant guilty of any offense, the commission of which is necessarily included in that with which he is charged, or of an attempt to commit the offense.
R.L.1910, § 5923.