The warning is nice. But you don’t get to shoot someone for a non-violent felony such as breaking and entering or trespass.
It’s murder. But he’s an immigrant from Brazil and exceedingly poorly trained as a member of the DC police. He’s a glorified butler for his career and one day got tested in actual cop conditions... and failed. So to him he thinks it’s legal.
It happens all the time.