Any commissioned officer of the military forces shall have the ordinary powers of a peace officer to arrest and detain any member of the military forces of the State of Nebraska for the commission of any crime punishable under the laws of the state while in any active service of the state. The arresting officer may release the offender to the civil authorities for prosecution.