The shooting is the latest in a long line of school attacks in the United States, where attempts to restrict access to firearms face political deadlock.