Man allegedly kills girlfriend and attempts suicide