The shots were fired at a house in Douglas Road, Handsworth, Birmingham - close to where teenager Keon Lincoln was killed - at around 10.15pm on Wednesday.
No-one was injured in the incident, but some damage was caused to the property and a car parked outside.
West Midlands Police have now launched an investigation – and the road was closed while officers carried out a forensic examination of the scene and conducted house-to-house enquiries.
Local Neighbourhood Inspector Nicholas Hill said: “Sadly this is another instance of dangerous violence in the area. I know that local people are extremely worried about what has happened, especially as it follows the murder of Keon Lincoln on nearby Linwood Road just a few weeks ago.
“While we do not believe the incident is connected, we’ve stepped up patrols in the area to reassure and engage with local people and businesses over the coming days. We are determined to tackle violent crime and will leave no stone unturned in our quest to catch those responsible for violence.
"I would like to remind people that we’re supporting a Home Office weapons surrender scheme which allows people to hand over weapons that will become illegal later this year. The scheme runs until the March 9.
"It’s all in a bid to help save lives by reducing the number of potentially dangerous weapons from getting into the wrong hands and being used in acts of violence. You can also claim compensation for giving them up.
"We also need the help of our communities in tackling these issues. If you have information that could help, please tell us. It could be the difference between a life being lost or someone being charged."
Anyone with information should call West Midlands Police on 101, quoting log number 4441 of February 3.
Alternatively, contact Crimestoppers anonymously on 0800 555111 or at crimestoppers-uk.org