A Lindley Middle School student died from a self-inflicted gunshot, prompting a lockdown and community response.