US President Barack Obama will attend a religious service Thursday in Boston dedicated to three people killed and more than 170 injured in the attacks on the city’s marathon.