Three-alarm fire damages store, apartments