Al-Qaeda and the Islamic State in Iraq and Syria group have claimed responsibility for several of the attacks, but Prime Minister Sheikh Hasina's secular government has pinned the blame on local extremists.