A suicide bombing in Afghanistan’s eastern Paktia province on Thursday that looked to target a military compound but exploded before its destination killed five civilians and wounded at least 29 others, including civilians and military personnel, Afghan officials said.