There is no way that you interact with people who are breaking in anywhere! Call the police, get to a safe location. If safe, take photos with the smartphone, note the time, location of entry, vehicle identification and other identifying facts.
Break in artists are becoming much more desperate and dangerous these days. If they are under the influence of drugs like methamphetamine, then they may kill someone just for the thrill. Others will be desperate to stay out of jail.
If these people will kill police, then they will not hesitate to kill a neighbor. Call the cops.