Since Dresden cannot determine which of his enemies is controlling the Nightmare, he casts a spell that binds the Nightmare to kill him, so it cannot harm anyone else.
He casts a spell. This spell binds the Nightmare to kill him. Dresden cannot determine which of his enemies is controlling the Nightmare. It cannot harm anyone else.