A suicide bomber struck outside the gates of a district court in Islamabad on Tuesday, detonating his explosives next to a police car and killing 12 people, Pakistan’s interior minister said.