Walk into a police station and state you just killed someone. They will lock you up, just be coy about who and where the body is and they will keep you locked up, maybe. If you want out just recant and say you just wanted some shelter. Without a body or a crime scene you will be free to go. IANAL or a cop so I could be 100% wrong in my scheme.