Josie shot him because he had given her a life of control and regret because of decisions she made with him. After she did this, she felt bad, but she only did it because of the type of boyfriend he was. She screamed for Peter to do something, so Peter shot Matt to kill him.