$1M bail set for man accused of shooting an officer