WASHINGTON—The U.S. Army’s website was taken offline Monday afternoon, and a Twitter account claiming to be a group calling itself the Syrian Electronic Army alleged it had hacked the site.

The Syrian Electronic Army is a network of hackers who back embattled Syrian President Bashar al-Assad.