Thousands of law enforcement officers attended the funeral, a number of them from out of state, including 46 from Maine.