An 18-year-old has been arrested after he was accused of threatening to kill a victim and their family because of the victim's gender identity and sexuality.