The 35-year-old man who shot himself in the head and was shot by a bailiff inside a Baltimore district court has died.