Off-duty cop who was just served a restraining order tried to shoot colleague — but her gun jammed: testimony