Police have released bodycam footage showing an Arizona sheriff’s deputy shooting a man who had pledged allegiance to the Islamic State.

Sgt. Brandon Wells shot Ismail Hamed, 18, outside a police substation in Maricopa County last month after Hamed called 911, telling the operator he had a knife and rocks. "My name is Ismail Hamed," he said. "I live in Fountain Hills, and I'm owing my allegiance to the Islamic State of Iraq and Syria. I just want a cop to come real quick and I want to deal with them."



This undated file photo provided by the Maricopa County Sheriff's Office shows Ismail Hamed. (Maricopa County Sheriff's Office via AP, File)

Wells’ body camera shows him approaching Hamed and asking for his ID. Hamed then begins throwing rocks at the officer.

Wells points his gun at Hamed and tells him to back off. “Drop it right now. Drop the knife,” Wells says as Hamed approaches him. “I will shoot you. Drop the knife.”

As Hamed continues approaching Wells, the officer fires twice and Hamed falls to the ground. Hamed was arrested and remains in police custody. He has been charged with aggravated assault and terrorism.

The Maricopa County Attorney’s Office alleges Hamed "intentionally or knowingly, did provide advice, assistance, direction or management'' to ISIS.