Gadhafi came to power with a military coup in 1969 , and was ostracized for decades over accusations of supporting international terrorism , including the 1988 bombing of Pan Am Flight 103 over Lockerbie , Scotland that killed 270 people .