A Florida sheriff's deputy was killed and a fellow officer was wounded Saturday in an ambush while responding to a house fire in Tallahassee, The Associated Press reported.

The gunman was killed a short time later in a shootout with Tallahassee police officers, according to Leon County Sheriff's spokesman Deputy James McQuaig, according to the AP.

The identity of the officers and gunman were not released and the investigation continues, the AP reported.

The shooting happened days after a Florida State University graduate opened fire on his alma mater's main library on the campus in Tallahassee, wounding three people before he was gunned down by officers, according to the AP.

Tallahassee police and fire officials responded with the two sheriff's deputies to a house fire about 10:15 a.m. local time on Saturday, he said, the AP reported.

One deputy was immediately shot and killed at the scene in an "armed ambush attack" and a second deputy fired at the gunman, who shot back and wounded the officer, the sheriff's office said in a statement, TampaBay.com reported.

The gunman hid outside the house as the deputy approached at about 10:15 a.m., the AP reported. The gunman then shot the deputy from behind, shot him again before taking the deputy's gun.

The man then left the burning home with the dead officer's gun, firing at first responders as they arrived in the area, according to TampaBay.com.

The 911 dispatcher who entered the fire call put in the address of a neighbor who reported the blaze, so the alerts that had been entered into a law enforcement computer system because of previous threats did not show up, the AP reported.

The deputy who responded to the call was saved by his vest, and his injuries are not believed to be serious, according to the AP.