A 20-year-old man died after a confrontation at a property he broke into.