On Jan. 18, 2016, six officers were called to a La Quinta Inn and Suites in Mesa, Ariz., after guests reported seeing a man with a gun in the window of a fifth-floor room. The video showed Mr. Shaver and a woman walking into a hallway as Philip Brailsford, a two-year veteran of the Mesa Police Department who was wearing the body camera, trained an AR-15 rifle on them.

Another officer can be heard ordering them to get on the floor and threatening to shoot if they do not comply.

“If you make a mistake, another mistake, there is a very severe possibility you’re both going to get shot,” the officer says in the video. He shouts at Mr. Shaver, “If you move, we are going to consider that a threat, and we are going to deal with it, and you may not survive it.”

“I’m sorry,” Mr. Shaver says at one point. “Please do not shoot me,” he says at another.

The officer’s commands at times seemed contradictory.

“Do not put your hands down for any reason,” he tells Mr. Shaver. “Your hands go back in the small of your back or down, we are going to shoot you, do you understand me?”