A 36-year-old man has died after he injured himself and was Tasered inside a shopping centre toilet block.