A roadside bomb that targeted a foreign diplomat's convoy has killed a police officer and injured four others.