Man faces life in prison after taking plea deal