Officials say the attacker was riding a motorcycle when he detonated his explosives outside of the police headquarters .