The shooter had become a major nuisance for residents in the affluent Prati neighbourhood of Rome, on the doorstep of the Holy See.