Three hurt in partial building collapse