They were trying to protect themselves. At the very least, they were trying to protect the property.
The suspects had no idea who they were trying to rob.