BENGHAZI, Libya — A suicide bomber struck the Libyan Foreign Ministry in the capital, Tripoli, killing three people on Tuesday, security officials said.

The officials, who spoke on the condition of anonymity because they were not authorized to brief the news media, said a second suicide bomber was shot and killed by guards before he could detonate explosives hidden in his vest.