Oscar Pistorius pleaded not guilty to murdering his girlfriend on a dramatic opening day of his trial in Pretoria.