Military exercises across Southern California have shaken some residents as sounds of gunfire and helicopters have erupted in the middle of the night.