The man died in Royal Perth Hospital after being confronted by a homeowner as he attempted to break into an address in Boulder, Kalgoorlie, 595km from Perth, on Friday.