Hundreds of people are expected to attend a funeral service for an off-duty police officer who was killed while trying to help.