Man confesses to murder after body found