A man has been convicted for attempting to kill police officers in a bomb attack.