In the EU the answer is always "it's unclear". Yes you can, but you also can't.
ECHR necessarily guarantees the right to shoot some intruders in some situations, but it's kind of impossible to know which situations those are except after the fact.