An ex-boyfriend of Anna Nicole Smith -- who went to prison for threatening her and assaulting her neighbor -- has been killed in a shooting ... TMZ has learned. Mark Hatten died Sunday after an incident with another man in Greeleyville, South…