ALAMEDA -- A soldier from Alameda died Sunday in Afghanistan when his vehicle was attacked with an improvised explosive device just a month after his deployment.

Staff Sgt. Thomas K. Fogarty, 30, was the commander of the vehicle when it was targeted as he traveled with his unit through Ahmad-Kheyl, the U.S. Department of Defense announced Tuesday. Three other soldiers were wounded in the attack.

Fogarty died after he was taken to the city of Puli Alam, the military said.

All four soldiers were assigned to the 3rd Battalion (Airborne), 509th Infantry Regiment, 4th Brigade Combat Team (Airborne), 25th Infantry Division.

Fogarty joined the Army in January 2004 and had served as an infantryman at Fort Benning and Fort Stewart, both in Georgia, as well as at Fort Hood in Texas.

He also served with the U.S. Army Recruiting Command in California.

Fogarty was sent to Afghanistan last month to serve as a replacement with the 4th Brigade Combat Team.

His family has been notified of his death, the Army said.

Fogarty is believed to be the third soldier from Alameda killed in Afghanistan.

In March 2011, Staff Sgt. Eric S. Trueblood was killed in Kandahar Province when his unit was attacked with an improvised explosive device.

The 27-year-old Trueblood was assigned to the 391st Combat Sustainment Support Battalion, 16th Sustainment Brigade, which operated out of Spinelli Barracks in Mannheim, Germany.

Army reservist Sgt. 1st Class Merideth Howard, 52, was killed when a bomb detonated near her vehicle in Kabul in September 2006. Army Staff Sgt. Robert Paul, 43, of Oregon, died in the same attack.

In Iraq, two Alameda residents have died since Operation Iraqi Freedom began in March 2003, according to the military.

Marine Lance Cpl. Aaron Boyles, 24, was killed in Al Anbar Province in September 2004 and Army Cpl. Michael Manibog, 31, was killed in Taji in February 2008.

Reach Peter Hegarty at 510-748-1654 or follow him at Twitter.com/Peter_Hegarty.