The 8-year-old said he wanted to thank the officers for their service to the community