Community in mourning gathers for officer’s funeral