Miles City man admits to illegal possession of gun