Man acquitted of shooting officer, convicted of gun charges