Fighters are routinely killed, without chance to surrender, by drone strikes.
Would that have been preferred?
No risk to US troops, but all the civilians and children in the compound would have been killed.
(Law of armed conflict states that aircraft are not required to accept surrenders)