Ex-boyfriend nearly shoots victim, himself in altercation; arrested on attempted murder charges