They have a duty to provide a safe workplace.

But that aside no employer has less liability for an employee who is killed at work as someone who is committing a crime on their premises.