Eddie Howe's Cherries took the lead in the 25th minute with Afobe scoring from close range on the rebound after Jordi Amat narrowly avoided deflecting the ball into his own net.
Fraser raced into the area in stoppage-time at the end of the half to smash in a Junior Stanislas cross, doubling the visitors' lead.
Swansea, under caretaker manager Alan Curtis, struggled to gain possession throughout the second half, before Bournemouth substitute Joshua King shot past goalkeeper Lukasz Fabianski to seal the win.
News that makes sense
Your trusted source for staying up-to-date with the world around you. Get free daily news updates and analysis, straight to your inbox.
(Reporting by Hugh Lawson, editing by Ed Osmond)
