'Lets say the criminal wanted to throw the molotov cocktail at the officer. Would the officer have the right to shoot him before the little bomb was thrown at him??' - if the cop (of any colour) thought himself or the public were in danger, issued intructions and the thug (of any colour) ignored those instructions then yes, absolutely, every time.
Job well done and go to the pub or bar for a stiff drink.