A 35-year-old woman has been arrested on suspicion of attempted murder after the home of pop star Rihanna was hit by gunfire, Los Angeles police say.