The man used what was later determined to be a pellet gun to force a bystander out of the apartment where he was hiding; he then approached an officer with the gun raised