When the arrest is being made by an officer under the authority of a warrant, after information of the intention to make the arrest, if the person to be arrested either flees or forcibly resists, the officer may use all necessary means to effect the arrest.