"in the act" then he deserved to be beaten but maybe not to such an extent that he died.
I don't like the US terminology of "use deadly force".