A series of bombs killed at least 7 people in the Indonesian capital Jakarta on Thursday, with shots fired outside a cafe as security forces moved in, police and witnesses said.